• Resolved pine_et_provence

    (@pine_et_provence)


    I’ve looked up all the support threads on the_tags(); but nothing that was suggested helped, it’s driving me insane! the_tags(); just doesn’t show up at all.

    I’m not sure if there is something wrong with my code. If someone could help to take a look i’d be very very grateful, thanks in advance!

    p.s I pasted the entire code here but please find my <?php the_tags(); ?> in the div “result”.

    http://pastebin.com/P8BQWKN6

Viewing 5 replies - 1 through 5 (of 5 total)
  • Then code looks ok for the_tags() silly question but you have added tags to the posts?

    Looking at the content.php file in twenty eleven, it looks like there is also a different call!

    /* translators: used between list items, there is a space after the comma */
    $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );

    Might be worth looking at the code in that file?

    HTH

    David

    Thread Starter pine_et_provence

    (@pine_et_provence)

    Thanks for this.
    Yeah i do have tags in the posts, and what’s really weird is that they work totally fine as a dropdown on the sidebar in the same page.

    So i tried this $tag_list = get_the_tag_list( $before, $sep, $after ); ? or $tags_list = get_the_tag_list( ”, __( ‘, ‘, ‘twentyeleven’ ) ); but no luck either.

    This is my page:
    http://www.comceptsasia.com/main/project-gallery/corporate-openings

    And the tags are supposed to appear in the green highlights in the thumbnails but they don’t appear. Previously i used the_title(); and it worked okay:

    http://www.comceptsasia.com/main/project-gallery

    Appreciate all the help!!

    Thread Starter pine_et_provence

    (@pine_et_provence)

    anybody? 🙁

    Thinking about it again, tags is returning an array of of text hyperlinks, you have these wrapped inside an <a href="">TAGS</a>.

    You need to move these outside into thier own div, look again at the codex linked above.

    Before you were just returning ‘the title’ which just returns a string where tags are a set of links.

    In conclusion you cannot hyperlink the posts to the tags, as these are hyperlinks in thier own right.

    HTH

    David

    Thread Starter pine_et_provence

    (@pine_et_provence)

    AMAZING it finally works!!! Thank you David, you don’t know how many bunches of hair i’d ripped off trying to troubleshoot this. Lifesaver you are.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘the_tags(); not working in archive.php/category.php’ is closed to new replies.