nightstalker101
Member
Posted 3 years ago #
Hi,
no, I meant the loop above, which cycles through all the posts, to get their cats.
That one where the array with cat id's and tag id's is written.
Would it be possible, to get the id's of the posts, that are looped there and write the into the array with the terms?
The post id will be in $post->ID in that loop as each post is 'encountered'.
nightstalker101
Member
Posted 3 years ago #
Many Many Thanks for your help. Now all is working.
simonmustoe
Member
Posted 2 years ago #
Hi,
Thanks so much for this very helpful page. I'd really appreciate it if someone could guide me on tweaking the code example above. As it is, it renders a list of categories (using 'include='.$term_ids) but I want to be able to exclude some categories using the exclude= function in wp_list_categories() and show categories as a parent-child tree. Any guidance would be gratefully appreciated.
Regards.
Nazdravlje
Member
Posted 2 years ago #
Hy MichaelH, many thanks for your code
I'm using this code in tag archive. However having problem because the category that is currently exist on page 1, still shown on page 2 and other pages (I'm using WP-PageNavi to display the navigation page). Can you help me with this?