[Resolved] Archive columns

Home Forums Support [Resolved] Archive columns

Home Forums Support Archive columns

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1652794
    Juan Carlos

    Hello, I have a doubt.

    Its possible to display the archive of a category in columns? In the categories I have pages, not posts.

    I have configured GP to display post files in columns, but it doesn’t work with categories.

    Thanks!

    #1652847
    Elvin
    Staff
    Customer Support

    Hi there,

    That’s strange.

    The settings for columns you’ll find on Appearance > Customize > Layout > Blog should apply to category archives as well. https://share.getcloudapp.com/4gu19GyJ

    Can you link us to the page in question to check? You can use the private information text field to provide your site details. Thank you.

    #1652859
    Juan Carlos

    I have the settings configured like in the capture you show me.

    #1653351
    David
    Staff
    Customer Support

    Hi there,

    how have you set the Archive to display Pages ?

    #1653443
    Juan Carlos
    #1653765
    Elvin
    Staff
    Customer Support

    With this plugin: https://es.wordpress.org/plugins/add-category-to-pages/

    Can you try temporarily disabling the plugin to check? I believe the plugin is conflicting with the filters involved with the columns.

    #1653992
    Juan Carlos

    If I deactivate the plugin, the page gives an error, because the pages lose the categories…

    #1654815
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Try doing this:

    add_filter( 'generate_blog_columns', function( $columns ) {
        if ( ! is_singular() && 'page' == get_post_type() ) {
            return true;
        }
    
        return $columns;
    } );
    #1654832
    Juan Carlos

    This works!

    A lot of thanks!

    #1654843
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

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