Support » Fixing WordPress » Query help

  • Resolved haussamen

    (@haussamen)


    Hi,

    I’ve created a special taxonomy called “Article top tagline” to allow me to put a tagline above the headline on posts on my site. Here’s the code I’m using:

    <?php $terms_as_text = strip_tags( get_the_term_list( $wp_query->post->ID, 'article_top_tagline', '', ', ', '' ) ); echo $terms_as_text;?>

    The problem is, it shows the same tagline each time. In other words, even though posts have different taglines such as “from our blog” and “news about us,” it shows “News about us” each time and never any of the others. What’s wrong with my code?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Query help’ is closed to new replies.