ThemeForest

Wordpress Tip - A quick note on "Reading Settings"

636 posts
  • Has been a member for 3-4 years
  • Author had a File in an Envato Bundle
  • Interviewed on the Envato Notes blog
  • Envato Staff
  • Support Staff
  • Beta Tester
  • Exclusive Author
  • Sold between 250 000 and 1 000 000 dollars
  • Elite Author
  • Bought between 1 and 9 items
  • United States
  • Referred between 500 and 999 users
cudazi says

I have been seeing this quite a bit in my inbox lately and I thought I would share to hopefully help some others.

Many of my themes use a reusable custom blog page template to allow you to control which posts show, allow multiple blog pages, set the number the columns/layout and so on. Let’s say it’s called page-custom-blog.php.

One issue arises quite often, in the Settings Reading SubPanel of the WordPress admin, there is a setting to set a static home and posts page. Setting your home page is a great feature but the “Posts Page” dropdown really confuses people.

When you tell Wordpress to use a page as your dedicated posts page, it’s actually reverting to index.php behind the scenes instead of page-custom-blog.php (like above) to show your posts and loses all the functionality of a custom blog page.

Hope this helps others who may have been experiencing this on other similar templates.

Thanks, Curt

(I realize you could just beef up index.php to include/feed in options like a custom page above, but a custom page template is reusable)

2 years ago
cudazi is an Envato staff member
3624 posts
  • Has been a member for 3-4 years
  • Won a Competition
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Contributed a Tutorial to a Tuts+ Site
  • Contributed a Blog Post
  • Interviewed on the Envato Notes blog
  • Envato Staff
  • Reviewer
  • Community Moderator
  • Author had a Free File of the Month
  • Beta Tester
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 50 and 99 items
  • Venezuela
  • Referred between 1 and 9 users
Ivor says

Thanks for share Curt :)

2 years ago
Ivor is a moderator
by
by
by
by
by