Adding posts to a page
-
Is there a way I can add specific posts to a page? Not as links, but similiar to the “most recent posts” page where you actually see each post, and not as rss.
-
-
Actually there IS a way: you can assign these posts to a category of their own, get the URL of that category page and create a page with the link to that URL as its title.
Note that a) the name of the link must include a space, and b) the resulting header page tab (if your theme has header tabs) doesn’t show up correctly in all themes. What’s the theme you’re using?
-
If you use panaghiotisadam suggestion and you don’t want the post to show up on the home page try this code
‘
function exclude_category($query) {
if ( $query->is_home ) {
$query->set(‘cat’, ‘-19’);
}
return $query;
}
add_filter(‘pre_get_posts’, ‘exclude_category’);
‘
NOTE: for that to work you have to change the “-19” to match your category’s id.
I got the code from here
http://zeo.unic.net.my/notes/exclude-category-in-wordpress/ -
Read the sticky before posting https://en.forums.wordpress.com/topic/please-read-me-first-before-posting?replies=1
That will NOT work here at wordpress.COM
- The topic ‘Adding posts to a page’ is closed to new replies.