• I want to list every post from a category and with the category like so:

    Fish Category 1
    – Fish Post 1
    – Fish Post 2

    Fish Category 2
    – Fish Post 1
    – Fish Post 2

Viewing 2 replies - 1 through 2 (of 2 total)
  • where exactly do you want to display that list?

    how familiar are you with php and the WordPress functions?

    what theme are you currently using?

    have you searched the forum, as something like this has been done before?

    https://developer.www.ads-software.com/reference/functions/get_categories/
    https://codex.www.ads-software.com/Class_Reference/WP_Query

    Thread Starter ZaddKeefer

    (@zaddkeefer)

    I am decent to say the least, but have no idea on how to put it all up in functions and such..

    It’s my own theme I am working on. I want to list that list for a parent post.. So it displays child post with their categories.

    This works for the child posts:

    <?php     $episodes = types_child_posts('episodes');
        foreach ($episodes as $episode) {
            echo '<li><a href="' . get_permalink( $episode->ID ) . '">';
            echo $episode->post_title;
            echo '</a></li>';
        } ?>

    But have no clue on how to include the child_post categories

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to display posts from a category with category?’ is closed to new replies.