Jump to content

Archived

This topic is now archived and is closed to further replies.

maui00wowi

Post Content/Loop Categories

Recommended Posts

maui00wowi

I am trying to create a page where the author can post news about himself and a page where he can post about people who have influenced his life. For the people I am using postpins, it is working out great. For the news I want it to look like a standard blog page and all the people are showing up in the blog feed. Can I either hide the "People" category or is there a way to show what category is displayed? In postpins there is a drop tab which allows you to choose which category is displayed, is there anything like this or is there a code I can use to display the "News" category in the blog page (Post Content/Loop)?

 

http://dennispoulsen.me/

 

Thanks for the help.

 

-Mallorie

Share this post


Link to post
Share on other sites
Danny

Hi Mallorie,

 

You're unable to hide a specific category from displaying without custom code. However, a better option in my opinion would be for you to create a custom post type and use that for the News. A custom post type will be separate to your posts. To create a custom post type, you can either use custom code or a plugin such as Custom Post Type UI.

 

https://wordpress.org/plugins/custom-post-type-ui/


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
maui00wowi

I used the plugin and was able to create a custom post type. I am having trouble displaying the post type. I have read several threads and tutorials about creating a template on a "page.php" but I cant seem to locate the .php file to add a template to it. I also tried going on the DMS editor's page set up where you can set templates but I didn't see anywhere to put coding. Can you please help? The post type I created for now is "test" I have 2 posts under it and both are working if you go directly to the link (http://dennispoulsen.me/test/test-test-123/) (http://dennispoulsen.me/test/test-2/). I think this means I set up the custom post type correctly.

 

-Mallorie

Share this post


Link to post
Share on other sites
Danny

OK, the instructions you're following are for a standard WordPress theme and are not required in DMS. All you need to do is create a custom post type using a plugin such as Custom Post Types UI.

 

To display your custom post types posts in DMS doesn't require any custom code or editing of a template, as the WP-Content/PostLoop section automatically picks the custom post type for you.

 

Follow the instructions below:

 

1. Create a custom post type, for this example let's imagine our custom post type is called Movies.

2. Go to your movies archive page i.e. http://www.mywebsite.com/movies/ (if you have enabled pretty links via Permalinks settings).

3. Now add the WP-Content/PostLoop section to your Movies archive page. However, this should be done automatically.

4. You should now see your posts listed like a standard blog.

 

 


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
maui00wowi

Thanks! There was a button in the advanced options that asks if you want an archive. When I switched the tab to "True" It started working perfectly. Thanks for the help!!

Share this post


Link to post
Share on other sites
Danny

No problem.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

×