[Resolved] option generate blog settings, set content type to full content

Home Forums Support [Resolved] option generate blog settings, set content type to full content

Home Forums Support option generate blog settings, set content type to full content

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1664925
    niall

    Hi,
    I’m using the option_generate_blog_settings filter to display a custom archive template from a specific category and it works perfectly however I’d like to display the “full content” rather than the excerpt, is there an option to do this?

     if ( is_category('positions-available') ) {
    	$options['read_more_button'] = true;
    	$options['date'] = true;
    	$options['categories'] = false;
    	$options['tags'] = false;
    	$options['comments'] = false;
            $options['infinite_scroll'] = true;
    	$options['infinite_scroll_button'] = true;
    	$options['masonry_load_more'] = 'More search results';
    	$options['post_image'] = true;
    	$options['post_image_position'] = 'post-image-above-header';
    	$options['post_image_alignment'] = 'post-image-aligned-center';
    	$options['column_layout'] = false;
    	$options['featured_column'] = true;
    	$options['masonry'] = false;
    	
        }
    

    Thanks in advance

    #1664940
    Ying
    Staff
    Customer Support

    Hi Niall,

    You could try layout element.
    https://docs.generatepress.com/article/layout-element-overview/

    Set content to Full-width.

    In display rule, select Post category archive > positions-available, then publish it.

    Let me know how it works.

    #1665422
    niall

    Hi Ying,
    Thanks for the reply, this isnt really what I need in this case.

    I’m using the generate_blog_settings filter because I need a completely different layout for this category (instead of the default layout I’ve set in the customizer).

    The generate_blog_settings filter is working perfectly, I just need some way to change the content type to “full content” (instead of “excerpt” which is set in the customizer) so for example I’m wondering is there some option like this that might work?

    $options['content_type'] = "full_content";
    

    Thanks

    #1665438
    David
    Staff
    Customer Support
    #1665728
    niall

    Hi David,
    That worked perfectly!

    Thanks very much

    #1665781
    David
    Staff
    Customer Support

    Glad to hear that!

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