Home › Forums › Xi Theme Discussion & Support › Permalink Help Please
This topic contains 11 replies, has 3 voices, and was last updated by Roger Leitch 9 years, 4 months ago.
-
AuthorPosts
-
December 1, 2011 at 10:20 pm #2211
How do I set a permalink on a page to display the blog postings from a Category? At the moment – if I use this code – {los_showposts post_type=”posts” columns=”3″ content=”true” heading=”true” cat_id=”” num_posts=”3″ } – I get all recent Posts and I only want it from one Category. Any help would be again most gratefully received!
December 1, 2011 at 10:55 pm #2212Okay I have realised this may not be exactly what I need and I am unsure what to do. What I want is to have posts from a category posted to the page. When I set the page template to ‘Blog,’ however, I get every post and I want only the posts from a particular category posted on that page does this make sense? Is there a simple solution? Thanks again for all your ongoing support!
December 1, 2011 at 11:08 pm #2213Hi Fionavar
You need to insert the cat_id number for the category you want to display in the show posts code e.g. cat_id=”20″.
The cat_id number can be found by looking on the posts / categories option, hovering the cursor over the category you want will display a tag_id number in the url. Use this number and it should work.
I am planning to use this approach to display “news” posts on selected pages.
Roger
December 1, 2011 at 11:16 pm #2214Thanks Roger I have that part actually working. My problem is that it is displaying ALL posts, not just from the category and, unlike the Blog Template, it doe snot show the entire Blog. Finally, with this function enabled, it is also posting the Featured Image, which I also do not want. So much to learn!
Fwiiw, this is my current code: {los_showposts post_type=”posts” columns=”1″ content=”true” cat_id=29″” num_posts=”1″}
December 1, 2011 at 11:17 pm #2215As a follow up, how do you set post types?
December 2, 2011 at 3:42 pm #2223Add thumbs=”false” to get rid of images.
You code fro cat_id has the quotes in the wrong place by the way. Should be cat_id=”29”
December 2, 2011 at 5:47 pm #2226Thanks – that got rid of the Thumbs! Is there a way, however, to display the entire Category Blog post on a page as if it were a Blog Template Page? Does that make sense?
December 2, 2011 at 6:32 pm #2229Not quite – that would then be the Blog template page?!
December 2, 2011 at 7:29 pm #2230Here is the page I am using: http://ucim.org/church/a-deacons-musing/
I have it set as default because when I set it as a Blog Template ALL of the posts throughout the site go there and I want only the Entries designated int he category: http://ucim.org/category/church/a-deacons-musing/ to post there. I suspect I am making this harder than it is, so thanks for your patience yet again!
December 2, 2011 at 11:23 pm #2232Instead of inserting the code to display posts, have you tried the combination of a page using the blog template with the custom field ‘category_name’ with your category name (not the id number) as the value.
Othe custom fields set the number of posts on a page etc.Hope this helps.
December 3, 2011 at 12:38 am #2234I have not tried that & brilliant! Thanks so much Roger that is exactly what I knew would be simple, though I did not know how. I am most appreciative!
December 3, 2011 at 8:08 am #2235Happy to Help 🙂
-
AuthorPosts
You must be logged in to reply to this topic.