Support » Developing with WordPress » Which .php file controls blog excerpts and single page views?

  • Resolved MRanson

    (@mranson)


    Hello. I want to remove the post meta data from post excerpts on the main blog page, but keep it for single post views. I also want to edit the data displayed on the single post views.

    Problem: I’ve identified three different files that seem to control this and don’t know which one to edit.

    content-postmeta.php
    * Postmeta used by files archive, index, search and single.

    content-postmeta-single.php
    * Postmeta used by file single.

    single.php
    * The template for displaying single post.

    I made changes in content-postmeta-single.php to edit the single page view, but these changes also appeared in the blog excerpt.

    I deleted the meta data from content-postmeta.php and this removed the meta from both the excerpt and the single page view!

    It seems I can’t change one without affecting the other.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Look into functions.php for custom excerpt implementation that may very well sit there.

    Thanks for your reply. By experimentation I’ve figured out which files are doing what. For the record, it was not functions.php.

    Cheers, anyway!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Which .php file controls blog excerpts and single page views?’ is closed to new replies.