Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to display the activity template index.php inside a shorcode


  • vomark
    Participant

    @vomark

    Hi,

    I have been trying the activity shortcode plugin but it doesn’t work that well.
    Is it possible to create a plugin that will add the activity index template to a shortcode?

    Will it be similar to this code?

    //[Activity Shortcode]
    function activityfull_func( $atts ){

    bp_get_template_part( ‘buddypress/activity/index’ );
    return;
    }
    add_shortcode( ‘foobar’, ‘activityfull_func’ );

  • You must be logged in to reply to this topic.
Skip to toolbar