[Support request] Making only the author archives in rows

Home Forums Support [Support request] Making only the author archives in rows

Home Forums Support Making only the author archives in rows

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1544470
    roy

    Hi, I was told to create a new topic for this.

    I would like to make it so the posts are in 3 rows if at all possible

    #1544855
    Leo
    Staff
    Customer Support

    Hi there,

    Give these PHP snippets a shot:

    add_filter( 'generate_blog_columns', function( $columns ) {
        if ( is_author() ) {
            return true;
        }
    
        return $columns;
    } );
    
    add_filter( 'generate_blog_get_column_count', function( $count ) {
        if ( is_author() {
            return '33';
        }
    
        return $count;
    } );

    Adding PHP: https://docs.generatepress.com/article/adding-php/

    Let me know if this helps 🙂

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