WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Custom Taxonomy Template Tag (5 posts)

  1. Charles Frees-Melvin
    Member
    Posted 4 years ago #

    Hi,

    I need an equivalent to <?php echo get_the_term_list($post->ID,'people'); ?> that does not output links.

    Thanks

  2. RahulB
    Member
    Posted 4 years ago #

    Till we get an equivalent, may be you can do

    strip_tags(get_the_term_list($post->ID,'people'));

    HTH
    - Rahul

  3. loremipsum
    Member
    Posted 3 years ago #

    Is it possible to strip out a specific tag? I'd like to strip out links, but keep paragraph formatting.

    Here's my code:

    <?php echo get_the_term_list($post->ID, 'Industries', '<p>', ', ', '</p>'); ?>

  4. ezhil
    Member
    Posted 3 years ago #

    hello
    iam using custom taxonomies in my site,so i did have seperate templates for displaying them.
    i have created a taxonomy called people and a term called star and also respective template to star (taxonomy-people-star.php) every thing works fine http://sportsstatus.in/dev/people/star/ .
    but when i query some other taxonomy like http://sportsstatus.in/dev/people/star/?sports=tennis to it the template structure changes to the archive format. how to over this.
    i want the original template structure assigned for star(taxonomy-people-star.php) to work.

  5. intenseblog
    Member
    Posted 3 years ago #

    I don't think you could make a query on WordPress custom taxonomy template, Is it?
    ____________
    intenseblog.com

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.