Site logo

Archived topic

option generate blog settings, set content type to full content

5 replies · Started by niall on February 19, 2021

Viewing posts 1–6 of 6

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

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

Hi David,
That worked perfectly!

Thanks very much

Glad to hear that!

This archived topic is closed to new replies.