WordPress.org

Ready to get started?Download WordPress

Forums

Display category of a Custom Post/Taxonomy on Archive Page (3 posts)

  1. sbeck91
    Member
    Posted 2 years ago #

    Let me start off by showing what I'm attempting to accomplish and what I have so far.

    This is what I would like: http://thecity.org/archives
    And this is what I have: http://www.test.campallaccess.com/site1/media/messages-2/messages-archive/

    So far I have everything except for the "Series" column.

    So, currently I have a custom post type set up called "Messages" and within that are 2 Taxonomies, "Series" and "Single Messages". The "Series" taxonomy has several post categories within it for each series that we do.
    What I want to be able to do is for the posts within the "Series" taxonomy show the category it is posted in in the last column and link to it's category page. And if it is within the "Single Messages" taxonomy show "None".

    Hopefully that wasn't too confusing and someone is able to help. I've been searching around for a few days now and haven't been able to find much of anything.

    Thanks!

  2. David Choi
    Member
    Posted 2 years ago #

    I am not exactly sure, but I believe the series is saved as Object or Array variable, because a single post can have several taxonomies.

    So you probably have to first assign that array variable into a new one, then use PHP in_array() function to see if it's within the "Single Messages" taxonomy.

    Somebody have to actually look into the codes, in order to create the feature for you, because it's not possible to know how it's coded, without digging into it.

  3. sbeck91
    Member
    Posted 2 years ago #

    So basically I should plan on going without that column :)

    Not a big deal, it's not completely necessary. It's just a nice little extra that would be great to have. But if it's way too much work than I don't think I want to mess with it.

    Thanks anyway.

Topic Closed

This topic has been closed to new replies.

About this Topic