• Hi,

    hope someone can help me with this.

    I try to use the plugin with buddypress.
    I have created a custom post type and the posts are displayed in the groups.

    I use query_posts to get the post i’d like to display.

    The plugin is working well on posts and pages, but on the buddypress parts it’s not working.

    I have seen, that all the js needed is not loaded, so i’d like to know if there is a way to load all needed on a buddypress pages.

    Thanks for this great plugin. It’s amazing.

    Looking forward ;-Sven

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author scribu

    (@scribu)

    Thread Starter Sven Lehnert

    (@svenl77)

    Hi scribu, thanks for the quick reply, but you link didn’t help me.

    I have all the requirements. There is a header and footer with all the needed template tags and the title is exactly the way you want it.

    Also if I view the custom post type outside buddypress all is working correctly.

    For me it looks like the scripts are not enqueued if it’s not a post or page.

    any idea?

    Plugin Author scribu

    (@scribu)

    If you look through the HTML source, do you see something like this:

    <div class="fee-field" ...> ?

    Thread Starter Sven Lehnert

    (@svenl77)

    fee-field ? no…

    Thread Starter Sven Lehnert

    (@svenl77)

    If I change in core.php line 22

    add_action( ‘template_redirect’, array( __CLASS__, ‘_init’ ) );

    to

    if ( !isset( $_GET[‘page’] ))
    add_action( ‘init’, array( __CLASS__, ‘_init’ ) );

    it’s working 😉

    Plugin Author scribu

    (@scribu)

    Ah, right, because buddypress doesn’t call template_redirect.

    Why do you check for !isset( $_GET['page'] ) though?

    Thread Starter Sven Lehnert

    (@svenl77)

    I want to avoid loading the scripts in the admin backend.

    But yes, it’s a dirty way, correct is something like this:

    if ( !is_admin())
    add_action( ‘init’, array( __CLASS__, ‘_init’ ) );

    was late last night ;-/)

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘use with buddypress’ is closed to new replies.