Forum ID in Topics URL
-
I am in includes/common/template-tags.php
I see
/** URLs **********************************************************************/ /** * Ouput the forum URL * * @since bbPress (r3979) * * @uses bbp_get_forums_url() To get the forums URL * @param string $path Additional path with leading slash */ function bbp_forums_url( $path = '/' ) { echo bbp_get_forums_url( $path ); } /** * Return the forum URL * * @since bbPress (r3979) * * @uses home_url() To get the home URL * @uses bbp_get_root_slug() To get the forum root location * @param string $path Additional path with leading slash */ function bbp_get_forums_url( $path = '/' ) { return home_url( bbp_get_root_slug() . $path ); } /** * Ouput the forum URL * * @since bbPress (r3979) * * @uses bbp_get_topics_url() To get the topics URL * @param string $path Additional path with leading slash */ function bbp_topics_url( $path = '/' ) { echo bbp_get_topics_url( $path ); } /** * Return the forum URL * * @since bbPress (r3979) * * @uses home_url() To get the home URL * @uses bbp_get_topic_archive_slug() To get the topics archive location * @param string $path Additional path with leading slash * @return The URL to the topics archive */ function bbp_get_topics_url( $path = '/' ) { return home_url( bbp_get_topic_archive_slug() . $path ); }
I figure there MUST be a way to add the forum to the topics URL. I’m doing this because I have a action based upon the URL string and need to have all things on that forum associated with that at a URL level. Any ideas?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.