Skip to:
Content
Pages
Categories
Search
Top
Bottom

Link to latest post


  • theredeclipse
    Participant

    @theredeclipse

    Hello,

    I’m trying to make a link to a latest topic in forum page. I achieved topic name by bbp_forum_last_topic_title function, but can’t figure out how to get a link for latest topic.

    I’ve tried to pull out something like this, but it links to forum index.
    <p><a href="<?php echo $link; ?>"><?php bbp_forum_last_topic_title(); ?></a></p>

Viewing 1 replies (of 1 total)

  • PinkishHue
    Participant

    @pinkishhue

    You could install the ‘bbp additional shortcodes’ plugin, then use that to display just one topic

    bbp additional shortcodes

    Then use ‘do shortcode’ if you want to place this in a template file, like:

    // Use shortcodes in form like Landing Page Template.
    <?php echo do_shortcode( '[bbp-display-topic-index show='1']' ); ?>

    I think that should work for you.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar