• Resolved marklock

    (@marklock)


    Hi,

    In the blog options for post content Full Post or Post Excerpt – is it possible to have Full Post only on one category?

    i.e. I want all my posts to be Post Excerpt, except for my testimonials category where I would like it to be Full Post.

    On Post Excerpt can I change […] at the end to be one of the nice buttons to find out more information.

    Thanks, Mark.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there Mark

    It might be possible to display full posts only on a single category, but it’d take a some code edits. You’d need to add the following to your child theme.

    function mytheme_filter_siteorigin_setting_blog_archive_content($val) {
    	if( is_category() && get_query_var('cat') == 18 ) {
    		$val = 'full';
    	}
    
    	return $val;
    }
    add_filter('siteorigin_setting_blog_archive_content', 'mytheme_filter_siteorigin_setting_blog_archive_content');

    You’ll need to change 18 to whatever your category ID is.

    As for adding a nice button – I think this is a great idea for a Vantage feature addition. The edits might be a bit too finicky to post here.

    Hope that helps 🙂

    Thread Starter marklock

    (@marklock)

    Many thanks Greg, will give it a go, have gone premium and with the new template has come out a lot better.

    Maybe something you can add for the future, to allow category id’s and/or blog id’s to be full or post.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Blog Content, Full or Excerpt’ is closed to new replies.