- This topic has 6 replies, 2 voices, and was last updated 5 years ago by
Elvin.
-
AuthorPosts
-
March 9, 2021 at 11:03 pm #1689064
Webmaster
How do I find out what the bbpress taxonomy tag is? If you install bbpress and visit
https://website.dev/wp-admin/edit-tags.php?taxonomy=topic-tag&post_type=topicyou’ll see where you can create the tags… you can even “hover over the Edit button and it’ll make a link likehttps://website.dev/wp-admin/term.php?taxonomy=topic-tag&tag_ID=159&post_type=topic&wp_http_referer=%2Fhelp%2Fwp-admin%2Fedit-tags.php%3Ftaxonomy%3Dtopic-tag%26post_type%3Dtopicand I was thinking I could use those for context clues?? … coming up empty!This does not work {{post_terms.topic_tags}} and I tried a bunch of other things too.
Here is the snippet of code in the file
\wp-content\plugins\bbpress\templates\default\extras\page-topic-tags.php.<div id="bbp-topic-tags" class="bbp-topic-tags"> <h1 class="entry-title"><?php the_title(); ?></h1> <div class="entry-content"> <?php get_the_content() ? the_content() : wpautop( esc_html__( 'This is a collection of tags that are currently popular on our forums.', 'bbpress' ) ); ?> <div id="bbpress-forums" class="bbpress-wrapper"> <?php bbp_breadcrumb(); ?> <div id="bbp-topic-hot-tags"> <?php wp_tag_cloud( array( 'smallest' => 9, 'largest' => 38, 'number' => 80, 'taxonomy' => bbp_get_topic_tag_tax_id() ) ); ?> </div> </div> </div> </div><!-- #bbp-topic-tags -->March 9, 2021 at 11:46 pm #1689094Elvin
StaffCustomer SupportHi there,
I’m not sure I understand what you’re trying to do.
Are you trying to list ALL bbpress taxonomy tags or are you trying to display taxonomy tags associated on a specific topic?
Note: BBpress is a third party plugin outside of GP development and support scope. I highly suggest referring to BBpress documentations or support for their best practices as its functionalities are not something controlled by the theme.
March 10, 2021 at 9:54 am #1690034Webmaster
Are you trying to list ALL bbpress taxonomy tags or are you trying to display taxonomy tags associated on a specific topic?
Display taxonomy tags associated on a specific topic in global header using GP template tag.
—
WP Admin > Appearance > Elements > Add New Element > Header > EDIT
I would like to use a global header, specifically on/for bbpress topic pages, and on those topic pages would display the associated tags (using a template tag {{post_terms.taxonomy}} or w/e is needed).
<ul> <li>{{post_author}}</li> <li>{{post_terms.BBPRESS_TAGS}}</li> </ul>March 10, 2021 at 3:44 pm #1690361Webmaster
gentle bump
March 10, 2021 at 4:54 pm #1690396Elvin
StaffCustomer SupportAh right. Thank you for clarifying.
Template tags are very specific to GP. It wasn’t written to take dynamic values from other plugins.
This isn’t exactly within out scope of support but try this:
add_shortcode('custom_bbp_tags',function(){ ob_start(); echo bbp_get_topic_tag_list(bbp_get_topic_id()); return ob_get_clean(); });This PHP snippet allows you to use
[custom_bbp_tags]on your Header Element. I’m not sure if this will work but its worth giving a try.Perhaps BBpress already has something for this. You should really ask their support forum if they already have something like this. Example: Shortcode lists – https://codex.bbpress.org/features/shortcodes/#topic-tags
March 10, 2021 at 6:28 pm #1690462Webmaster
Thanks for the best-foot-forward effort and good luck to you in your day.
Cheers.
March 10, 2021 at 6:34 pm #1690466Elvin
StaffCustomer SupportNo problem. 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.