To link or not to link
-
Hi!
I’ve written the following code because I want to show post titles that are marked with the category “front-page-news” to logged out users, but only provide an actual link on the title to the content that has been given the custom taxonomy “Role” term of “general-public.”
My code is as follows:
[is logout][loop type=post count=5][if taxonomy=category term=front-page-news relation=and taxonomy_2=role term_2=general-public compare_2=not][field title, field date][br][else][field title-link, field date][br][/if][/loop][/is]I’m not getting anything in the results. What am I doing wrong?
Also, I’d like to be able to link the titles that DO NOT have the term “general-public” to our page that tells the user that he/she must login to access this content. I wasn’t sure where to put that code or how to do it.
Thank you!
https://www.ads-software.com/plugins/custom-content-shortcode/
- The topic ‘To link or not to link’ is closed to new replies.