Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Issue Displaying WordPress Custom Post Type Taxonomy Tags

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #145775
    Josh
    Participant

    Hey all,

    I’ve been at this for a little bit trying to figure out how I can accomplish this but I’m not getting any resolution in trying things or research.

    I’m working on a custom post type called “Field Notes”. What I’d like to do is show the employee’s name, the tags associated with the post, picture and a description.

    I’m having trouble getting the tags associated with the post to show up. I can successfully have a tag cloud working just fine and all the tags are showing up, but whenever I try and isolate just the single post’s tags, it comes out blank.

    The only thing I’ve got working is the tag cloud which looks like this:

    <?php $args = array(
                                'smallest'                  => 8, 
                                'largest'                   => 10,
                                'separator'                 => ',',
                                'unit'                      => 'pt', 
                                'number'                    => 45,
                                'orderby'                   => 'name', 
                                'order'                     => 'ASC',
                                'taxonomy'                  => 'tags', 
                                'echo'                      => true,
                            ); ?>
                            <?php wp_tag_cloud( $args ); ?>
    

    Has anyone tackled this that might be able to shed some light?

    #145778
    Alen
    Participant

    Can you show two versions of the code, the one that works and one that doesn’t? That way we can see what’s going on. The piece of code you posted is too abstract.

    If you didn’t see this: http://codex.wordpress.org/Function_Reference/wp_tag_cloud

    check it out might contain info you’re after.

    #146339
    Senff
    Participant

    If you basically wanted to show the terms of the custom taxonomy that are attached to the post, this article might help: http://www.senff.com/front-end/on-custom-taxonomies/

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Back End’ is closed to new topics and replies.