Support » Plugin: Taxonomy Terms List » [Plugin: Taxonomy Terms List] Change the position

  • Resolved Niraj Chauhan


    Hi, i liked your plugin very much,
    but i want to make some changes in it, normally custom taxonomies are displayed exactly after the post, but i want to display it above the post,
    for example check this image i want in this position

    and just like courses i will also add Location in post and i want location taxonomies in it

    how can i do this???

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Michael Fields



    This is out of the scope of what I intended the plugin to do. It looks like you wish to add the terms inside your post_content. If this is true, then you will want to create a custom shortcode to do so.

    thanks for your reply
    My php knowledge is weak, can you guide me what i have to do or what code changes i have to make,
    it will be a nice help

    Hey forget that above comment
    i coded little bit i used add_shortcode in ur plugin file
    and do_shortcode in my theme single.php file
    everything is coming as it should, the position is also correct, but now i am getting two outputs, the last which is the original output, i dont want that to come,
    how can i avoid that???

    Plugin Author Michael Fields



    Glad you got that part sorted! This part should be rather easy. Look gor this code on line 39:

    add_filter( 'the_content', 'mfields_taxonomy_terms_list' );

    and either comment it out or delete it.

    If you are directly modifying this plugin it is better to add it’s functions to your theme’s functions.php file or rename it. This way you will not run the risk of accidentally overwriting your updates when I update the plugin.

    thanks a lot, its done
    i appreciate your help
    there is one more short but not a correct way
    in the line of

    if( is_single() )
    return $c . $o;
    return $c;

    if you change this part then it will give you exact above the post

    return $o.$c;

    its not a proper way then too
    thanks a lot
    you made my day

    Plugin Author Michael Fields



    No problem. Glad I could help 🙂

    hey i need one more help
    i have two custom taxonomies, which i want to display but the alignment is not proper, any how i tried to change in the plugin code by using <table> tag but the second one (Duration) taxonomy is not proper
    check the image here

    the code which i edited is here

    $o.= get_the_term_list( $post->ID, $name, $before = ‘<p><span class=”mfields-taxonomy-term-list-name”>’.'<table><tr><td>’ . $config->label . ‘:</td><td> ‘, $sep = ‘, ‘, $after = ‘</td></tr></table></span></p>’ );

    i want both custom taxonomy in proper alignment as the remaining content is

    in other words how can i separate the taxonomies?
    i mean the plugin code which you provided will include all the custom taxonomies,
    but if i just want to display certain custom taxonomies then how can i do that?
    this will make me to display and align them in proper order

    I know this is a stupid question but can you guide me in this?

    you are a great coder
    just now i found your one more plugin which can be perfect for me,
    Taxonomy List Shortcode Plugin
    now i just wanna know that instead of writing every time in post [taxonomy-list tax=’category’], is there any way to keep this permanent in my single.php file????
    i tried this code but seems to be incorrect
    <?php echo ("[taxonomy-list tax='category']"); ?>

    what will be the correct way, and i also dont want that

    • in it, i just want plain links to appear

    and also guide me to the upper question
    i am new to php so weak in knowledge

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: Taxonomy Terms List] Change the position’ is closed to new replies.