Skip Navigation

[Resolved] Highlight premium ads

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 6 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 15 replies, has 2 voices.

Last updated by Shane 6 years, 8 months ago.

Assisted by: Shane.

Author
Posts
#618606

I would like to highlight premium ads. I have created in the a contribution field "Premium". If you now click on the Premium checkbox field it should be highlighted on the search results with a yellow background

#618789

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Lisa,

Thank you for contacting our support forum.

I'm assuming that your view is displaying both the premium and non premium adds.

What you can do is to utilize our conditional shortcodes to get this done.
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/

If you are having any issues and need further explanation on this one please do not hesitate to ask as i would be more than happy to continue assisting.

Thanks,
Shane

#621329

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Lisa,

Was I able to assist you with resolving this issue?

Please let me know.
Thanks,
Shane

#621334

Hello, unfortunately no,

again to my question! I want to realize this.
I am currently creating a display market with free and premium ads.
The sort order should be the following on the start page

Premium advertisement by date
Standard advertisements by date

the premium ads should always be on top. I would like to take here but only one view because otherwise I get an interruption of the ongoing advertisements when I use two views

#621343

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Lisa,

I see I thought you wanted to just have the Premium ones being highlight. Since you want to have the premiums at the top and the regular below then this will require the use of 2 views.

I'm not sure what you mean by "I get an interruption of the ongoing advertisements when I use two views". Could you explain this a bit further .

Thanks,
Shane

#621345

With the interruption I mean that if I use two views that I create an unwanted paragraph between premium and standard this should be continuous or do I understand now what wrong?

#621347

So my codes are as follows in the page

[wpv-view name = "all-premium"] [wpv-view name = "all-inserate"]

However, with this code I get an unwanted paragraph between premium and the standard advertisements

#621351

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screen Shot 2018-03-02 at 6.29.11 AM.png

Hi Lisa,

What you can try to do is to place the premium ads view inside standard ads view. You can add it to the Loop and Filter integration editor section. See Screenshot

Please let me know if this helps.
Thanks,
Shane

#621357

Hello, unfortunately it did not help the unwanted paragraph is still in it

[Wpv-filter-meta-html]
[wpv-view name = "all-premium"] [wpv-view name = "all"]
[Wpv-layout-meta-html]

Example hidden link

#621546

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Lisa,

I see the issue and its because each view is wrapped in a div which is causing the breakage. Unfortunately there is nothing we can do about this but I can have a look for you to see if a css solution could at least bring the views closer together.

Would you mind sending me a link to the page where you have this setup so that I can take a look?

Thanks,
Shane

#621550

hidden link

Enclosed the link to my page which I have created with Toolset itself. However, the problem page is not published here because the website is currently in live mode

Maybe I'll get a feedback from you what you think about the extent and the side 🙂

#621563

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Lisa,

This is a nice site done with toolset.

Would you be able to setup a demo of the issue on a private page so taht I can have a look.

Thanks,
Shane

#621565

hidden link

#622161

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Lisa,

I must apologize for the delay in response as our forums are closed on the weekends.

However it won't be possible to have them aligned as how you would like it because they are separated in 2 different divs because of the 2 different views.

Unless I just had an idea, If you sort your view by the field that you use to identify the premium escorts do the non-premium ones show up ?

Sorting the view will allow you to show the premium ones first and then the non-premium ones below.

Thanks,
Shane

#622198

Hello, no problem!

This is not synonymous, I've already tried. On the one hand the problem is that I can not sort checkbox fields and on the other hand I have in the secondary sorting no fields to select but only if the contribution should be sorted by title by date, etc ..

The forum ‘Types Community Support’ is closed to new topics and replies.