Code was working and now it's not…?
-
Hi, I have loops like the following on several pages. They were all working, but now only three are working, and we haven’t changed anything.
Here is the working code:
[is logout] [loop type=”post” taxonomy=category term=”latest-news,front-page-news” relation=and taxonomy_2=”roles” term_2=”general-public” count=”5″][field title-link][br][/loop][/is][is role=”subscriber”][loop type=”post” taxonomy=category term=”latest-news,front-page-news” relation=and taxonomy_2=”roles” term_2=”general-public,subscriber” count=”5″][field title-link][br][/loop][/is]
[is role=”contributor”][loop type=”post” taxonomy=category term=”latest-news,front-page-news” relation=and taxonomy_2=”roles” term_2=”general-public,subscriber,steering-committee” count=”5″][field title-link][br][/loop][/is]
[is role=”editor,author,administrator”][loop type=”post” taxonomy=category term=”latest-news,front-page-news” relation=and taxonomy_2=”roles” term_2=”general-public,subscriber,steering-committee,mders-staff” count=”5″][field title-link][br][/loop][/is]
And the non-working code:
[is logout] [loop type=”post” taxonomy=category term==”latest-news” relation=and taxonomy_2=”roles” term_2=”general-public”][field image image_class=”alignleft”][br][field title-link] [field excerpt][br][/loop][/is][is role=”subscriber”][loop type=”post” taxonomy=category term=”latest-news” relation=and taxonomy_2=”roles” term_2=”general-public,subscriber”][field image image_class=”alignleft”][br][field title-link] [field excerpt][br][/loop][/is]
[is role=”contributor”][loop type=”post” taxonomy=category term=”latest-news” relation=and taxonomy_2=”roles” term_2=”general-public,subscriber,steering-committee”][field image image_class=”alignleft”][br][field title-link] [field excerpt][br][/loop][/is]
[is role=”editor,author,administrator”][loop type=”post” taxonomy=category term=”latest-news” relation=and taxonomy_2=”roles” term_2=”general-public,subscriber,steering-committee,mders-staff”][field image image_class=”alignleft”][br][field title-link] [field excerpt][br][/loop][/is][br]
Once I got this working, I just basically cut and paste, and modified the category term. I’ve checked my categories and I’ve used them correctly. I am at a loss. I hope you can help me.
Thank you!
Gailhttps://www.ads-software.com/plugins/custom-content-shortcode/
- The topic ‘Code was working and now it's not…?’ is closed to new replies.