Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: shortcode parameters documentation #29204
    TWarrior
    Participant

    Thank you

    in reply to: Exclude Post by Taxonomy (category or tag) #28902
    TWarrior
    Participant

    thank, I will try them

    in reply to: two columns background, like GeneratePress #28862
    TWarrior
    Participant

    Thanks for replaying.

    I have not explain myself correctly. But I think I have found a solution, but not sure if it is the best one. I share it here:

    the question is:

    How to make a “WP Show Posts” list looks like the “Separate Containers” of Generatepress?

    In GeneratePress, with “Content Layout” set to “Separate Containers”, we can see the body background around the posts (both between rows, and between columns). See image (we can see the grey background):

    But in “WP Show Post” you don`t have this option. So, How to achieve something similar?

    Posible solution: (but not working)
    If you select the “Columns gutter”, you will add column spacing, but you will see the color background of the page or post where you have added the WP Show Post Shortcode, but not the “Body Background”.

    My Solution:

    1º Set the “WP Show Post” to:
    – Columns gutter: 15px
    – Padding: 20px
    – Background color: White (or the same color as your Posts Background)

    2º Insert the “WP Show Post” Shortcode inside a “Container Block” (By GenerateBlocks) and set as:
    – Background color: grey (or the same color as your Body background)
    – Padding: 0px

    Now, will look like this, with a “problem” in the sides:

    3º Set the “Page Layout” option: Content Container = Contained

    Now, we have a WP Show Post List, looking like the GeneratePress separate containers:
    WPShowPost list looking like GP Separate Containers

    I hope i have explained myself, and hope will help someone.

    in reply to: Use Static Pages as Category Archives #28753
    TWarrior
    Participant

    I have make it works only if:

    1. I use the slug “biblio”, not the name “Biblio”.
    AND
    2. The category has no “Parent Category”

    But i need the parent category…

    in reply to: Use Static Pages as Category Archives #28750
    TWarrior
    Participant

    Hello,

    This is not working for me:

    add_filter('request', function( array $query_vars ) {
        if ( is_admin() ) {
            return $query_vars;
        }
    
        $targets = array(
            'Biblio',
        );
    
        if ( isset( $query_vars['category_name'] ) && in_array( $query_vars['category_name'], $targets ) ) {
            $pagename = $query_vars['category_name'];
    
            $query_vars = array( 'pagename' => "$pagename" );
        }
    
        return $query_vars;
    } );

    – I have a “Biblio” page and a “Biblio” category.
    – If I remove the “&& in_array( $query_vars[‘category_name’], $targets )” code (using the default code in https://docs.wpshowposts.com/article/use-static-pages-as-category-archives/ ) It is works perfectly.

    What am I missing?

Viewing 5 posts - 1 through 5 (of 5 total)