WordPress.org

Ready to get started?Download WordPress

Forums

Subscribe To Comments Reloaded
[resolved] Show Managment Page under bbpress profile (2 posts)

  1. paulodamian
    Member
    Posted 9 months ago #

    Hi there, the plugin is working great so far.

    The issue I have is that I can not show the managment page under the bbpress profile page.

    What I have tried:

    <?php echo do_shortcode('[subscribe-url]') ?>
    Result: [subscribe-url] is printed on the page.

    <?php
    if (isset($wp_subscribe_reloaded)){ global $posts; $posts = $wp_subscribe_reloaded->subscribe_reloaded_manage(); }
    ?>

    Result: Nothing, $wp_subscribe_reloaded is not set at this point.

    I am a PHP programmer but this are my first steps with wordpress.
    I think that the second option is the correct one but I don't know why
    $wp_subscribe_reloaded is not set at that point.
    P.S: I have tried with the Virtual Management Page disabled and enabled option in the plugin options, same result.

    Any help will be much appreciated.

    http://wordpress.org/extend/plugins/subscribe-to-comments-reloaded/

  2. paulodamian
    Member
    Posted 9 months ago #

    Ok, I solved my problem.

    Among other things specifics to my environment this is the code that I used to put the manage subscriptions options in a custom place:

    global $wp_subscribe_reloaded;
    
    if (isset($wp_subscribe_reloaded) && get_class($wp_subscribe_reloaded) == 'wp_subscribe_reloaded'){
        global $posts;
        $posts = $wp_subscribe_reloaded->subscribe_reloaded_manage();
        echo '<h2 class="entry-title">' . $posts[0]->post_title . '</h2>';
        echo $posts[0]->post_content;
    }

Reply

You must log in to post.

About this Plugin

About this Topic