• Resolved jeff96

    (@jeff96)


    I have a problem using the shortcode in a custom buddypress tab. Here’s the code of the bp-custom.php file:

    `<?php
    function profile_tab_myarticles() {

    global $bp;

    bp_core_new_nav_item(
    array(
    ‘name’ => ‘I miei articoli’,
    ‘slug’ => ‘my_articles’,
    ‘screen_function’ => ‘myarticles_screen’,
    ‘position’ => 40,
    ‘parent_url’ => bp_loggedin_user_domain() . ‘/my_articles/’,
    ‘parent_slug’ => $bp->profile->slug,
    ‘default_subnav_slug’ => ‘my_articles’,
    )
    );
    }

    add_action( ‘bp_setup_nav’, ‘profile_tab_myarticles’);

    function myarticles_screen() {
    add_action( ‘bp_template_content’, ‘myarticles_content’ );
    bp_core_load_template( apply_filters( ‘bp_core_template_plugin’, ‘members/single/plugins’ ) );
    }

    function myarticles_content() {

    if ( is_user_logged_in() )
    {
    echo do_shortcode(‘[frontier-post]’);
    }
    else
    {
    wp_login_form( array( ‘echo’ => true ) );
    }
    }

    ?>’

    The code works great and the new tab is created but the shortcode doesn’t show anything. Thanks in advance for your support!

    https://ww.wp.xz.cn/plugins/frontier-post/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author finnj

    (@finnj)

    Frontier Post will require a page (or a post if setting in Frontier Post advance sttings is ticked).

    If you have the possiblity to include a widget, you might try to include the My Posts widget. Some theme allows ad hoc widgets.

    You will still need a page with the Frontier Post shortcode for this to work, but you do not need the page to be in the menu

    Hi, i have an issue using the below short codes. It was working till the last update(Version 3.8.0) now code is not working. kindly help me to fix the issue.

    [frontier-post frontier_list_all_posts=true]
    [frontier-post frontier_list_all_posts=false]

    Plugin Author finnj

    (@finnj)

    Hi,

    Can you explain what your problem is – Why is it not working ?

    I have re-tested it, and it seems to work for me

    Please create your own posts (then you will also get email updates)

    ok

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Shortcode not working’ is closed to new replies.