Skip to content

Instantly share code, notes, and snippets.

@raamdev
Created May 12, 2014 22:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raamdev/ad36b0efb1b2effdbcd4 to your computer and use it in GitHub Desktop.
Save raamdev/ad36b0efb1b2effdbcd4 to your computer and use it in GitHub Desktop.
<?php /* Only show excerpts for Standard post format OR Chat format,
when this is not both the very first standard post and also a Sticky post AND
when excerpts enabled or One-Sentence Excerpts enabled AND
this is not the very first standard post when Show Full Content First Post enabled */
?>
<?php if ( ( ! get_post_format() || 'chat' === get_post_format() ) &&
( ! ( independent_publisher_is_very_first_standard_post() && is_sticky() ) ) &&
( independent_publisher_use_post_excerpts() || independent_publisher_generate_one_sentence_excerpts() ) &&
( ! ( independent_publisher_show_full_content_first_post() && independent_publisher_is_very_first_standard_post() && is_home() ) )
) :
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment