0

I have a homepage that should display a few different posts from different categories. I use the "Stick this post to the front page" option to this matter and each post permalink looks like http://site.com/sample-post/.

Now this site should also feature a blog with articles (these are different than the homepage ones) at /blog with permalinks like http://site.com/blog/sample-post/. I thought on doing this through custom post types. That way I'd have "Homepage articles" and "Blog Posts", but I feel like I'm overcomplicating it. Is there a way of doing it on a simpler manner?

1
  • So I created a custom post type: milestone. I it to be very simple: site.com lists milestones and site.com/blog lists regular posts. How do I do this?
    – Mauro
    Commented Aug 19, 2014 at 19:08

1 Answer 1

1

If you specifically want to restrict your homepage articles from being accessible via their URL at http://site.com/blog/, then yes, you will need to create a separate post type for them. If, on the other hand, you don't care whether they are accessible by their own URL, but just don't want them to appear along with the "normal" blog posts, then you could easily hook into pre_get_posts and modify the blog query to exclude them from the default blog archive view.

1
  • So I created a custom post type: milestone. I it to be very simple: site.com lists milestones and site.com/blog lists regular posts. How do I do this?
    – Mauro
    Commented Aug 19, 2014 at 19:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.