How to exclude some words
-
Hi,
I am looking for a way to exclude certain terms from the displayed titles.
I have landing pages where the shortcode works perfectly as follows:[random_post_on_refresh post_type="issslpg-landing-page" show="title"]
However, it only displays the most recently created posts.
I would like it to display, for example, only posts containing the word or slug “roofer,” or to exclude posts with that word.
I tried using category taxonomies, but it only works for the landing page templates. Unfortunately, the landing pages themselves are not listed in categories.
The same goes for CSS classes—I can’t define a div in CSS using Elementor.Chat GPT gave me some advice on modifying the source code, but that didn’t work either.
thanks for your replies.
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.