WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Show Related Categories in Cat. view (35 posts)

  1. nightstalker101
    Member
    Posted 4 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?

  2. MichaelH
    Member
    Posted 4 years ago #

    The post id will be in $post->ID in that loop as each post is 'encountered'.

  3. nightstalker101
    Member
    Posted 4 years ago #

    Many Many Thanks for your help. Now all is working.

  4. simonmustoe
    Member
    Posted 3 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.

  5. Nazdravlje
    Member
    Posted 3 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?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags