Site logo

[Resolved] How can a page exist and not exist at the same time?

Home Forums Support [Resolved] How can a page exist and not exist at the same time?

Home Forums Support How can a page exist and not exist at the same time?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2581450
    Philippe

    Hi,

    If you go to https://onehomeplanet.com/forums/users/ you will see the page.

    I did not create it and it does not appear in the All Pages list in the WP dashboard. It was created by the GD Members Category plugin.

    I can contact the plugin author, of course, but I thought the GP team could have a quick answer to what is for me an issue: I need to set this page as a location display rule for the bbPress sidebar element I created.

    Thanks for your help,

    Philippe

    #2581545
    David
    Staff
    Customer Support

    Hi there,

    that is showing a body class for the BBpress Members directory.

    If that the case then it has this conditional template tag:

    bbp_is_members_directory()

    So you could try using that with the generate_element_display filter:

    https://docs.generatepress.com/article/generate_element_display/

    eg,

    add_filter( 'generate_element_display', function( $display, $element_id ) {
        if ( 100 === $element_id && bbp_is_members_directory() ) {
            $display = true;
        }
    
        return $display;
    }, 10, 2 );

    Change the 100 to match the ID of the layout element you want to apply to it.

    #2582391
    Philippe

    Hi, David.

    For reasons concerning the layout, I eventually went with the Content Aware Sidebar plugin. You made me learn something, however, and I thank you for that.

    #2582848
    David
    Staff
    Customer Support

    Glad to be of help!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.