Posts in Custom postype not visible on frontpage wordpress
-
03-10-2019 - |
Question
I have created a custom post type restaurant. But Its not coming on the main page. But I'm able to see the post in single view when using the permalink. Is it that I have to make any changes in the index.php? If yes what changes? I'm using the default Twenty Ten theme in wordpress 3.
And how can I get only the custom post type in another page with pagination?
Solution
It's best to use postmeta for this instead of messing with the post_type as there is wordpress functionality which is depended on post_type.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow