WordPress.org

Ready to get started?Download WordPress

Forums

Ultimate Category Excluder
Post category vanished from blog page (23 posts)

  1. thestealthyfox
    Member
    Posted 1 year ago #

    Just the plugin I was looking for as I wanted to only show one category of posts on my homepage.

    Only problem is that that category are now only showing on my blog page too!
    The others have disappeared.

    Any idea why?

    http://wordpress.org/extend/plugins/ultimate-category-excluder/

  2. Michael Clark
    Member
    Plugin Author

    Posted 1 year ago #

    I'm confused by your description of the problem. Can you give the site's URL? Do you have a separate blog page and home page?

  3. thestealthyfox
    Member
    Posted 1 year ago #

    Yes - the url is http://www.eclipse-experience.com/subdirectory

    I'm trying to just show mindset posts on the home page, however if I hide other categories from the home page in the options, it also hides them on the news (blogroll) page.

  4. Michael Clark
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for sending the site. Is this URL: http://www.eclipse-experience.com/subdirectory/news/ a "page" or a "post"? I think it is a "page" but I don't think you can have a page with the same slug as a post or category. The system is getting confused with having multiple items called "news." Does that make sense?

  5. thestealthyfox
    Member
    Posted 1 year ago #

    It's a page, with posts on it - like the blog roll page which displays posts.
    So I want to show all categories on that page, but just the mindset category posts on the homepage.

    I thought the plugin would be able to do that?

  6. Michael Clark
    Member
    Plugin Author

    Posted 1 year ago #

    How are you putting posts on a page? A WordPress "Page" is generally fairly static information, such as your "Work" or "Get in touch" page. A page is created and edited through the admin area, probably at http://www.eclipse-experience.com/subdirectory/wp-admin/edit.php?post_type=page . I'd guess your theme may be showing posts on your page? I need to know how the posts are being added to your Page so I can figure out where the problem is.

    For now, simply rename the "News" page to something else (even news-temporary would be ok) and see if what you're trying to do starts to work. But I think the issue is probably going to be how your theme is adding posts to the page.

  7. thestealthyfox
    Member
    Posted 1 year ago #

    I've tried renaming the news page but to no avail.

    What more can I give you to try and fix this? I'm losing the will to web design!

  8. Michael Clark
    Member
    Plugin Author

    Posted 1 year ago #

    It looks like renaming the news page to news-tem changed something. I'm seeing posts now on the news-tem Page.

    How are posts appearing on the news-tem Page? Is it the theme?

  9. thestealthyfox
    Member
    Posted 1 year ago #

    I'm getting posts on that page, but it's only showing mindset and I want it to show all posts.

    I want to show just mindset on the homepage and all categories on the news page.

  10. Michael Clark
    Member
    Plugin Author

    Posted 1 year ago #

    You're not answering my question. How are posts appearing on that page (news-tem)? Are you using a plugin, or is the theme doing it? How posts are appearing will affect my answer to how to get it to work. As currently implemented, everything is working correctly, that is, everything is doing what it is told. Wee just need to figure out where to tweak to get what you want.

  11. thestealthyfox
    Member
    Posted 1 year ago #

    Sorry Michael, the theme is doing it. I set the page template to blog overview. I've also set the news page as the blog page in the reading settings in wordpress.

    It's been a long day and I'm probably not making any sense!

  12. Michael Clark
    Member
    Plugin Author

    Posted 1 year ago #

    Ok, so under Settings > Reading, the "Front page displays" "Your latest posts" . Correct?

    I have not ever used the Se7ent theme, so am not familiar with the "page template to blog overview" option. It may not matter. Do you have to define "template" on the "news-tem" page? Or is it just using the default template?

    Easy thing to explore for now. Change the site's theme back to the 2012 (twenty twelve) and see what happens to the home page and the news-tem page.

    I think I know what to tell you to tweak in the Se7ent theme, but it will involved getting into the theme files and editing them. Is that something you can handle?

  13. thestealthyfox
    Member
    Posted 1 year ago #

    Okay, I've switched to Twenty Twelve and it's still excluding from the blog page.
    I've just noticed, I checked the box to hide other categories from the Main Page. I'm assuming now that this doesn't reflect the home page, but the main blog page?
    There isn't a box to exclude from the home page.

    I can tweak the Sevent theme via theme files if you think that will work?

  14. Michael Clark
    Member
    Plugin Author

    Posted 1 year ago #

    So you only have two categories right now, news and mindset. On the Settings > Category Exclusion, you have "news" checked in the "Exclude from Main Page?" column, correct?

    Is the template for the news-tem page "Default template"? It's on the right of the page editor, in the Page Attributes box.

    What category number is mindset? Posts > Categories then put your mouse on the name of the category. The URL should appear at the bottom of your browser window. Look for tag_ID= The number after the equal is the category number.

  15. thestealthyfox
    Member
    Posted 1 year ago #

    That's correct - just two categories.

    The template for new-tem is Blog Overview. I can't actually find the template in the Editor that correlates with that template.

    tag_ID=32 for mindset.

  16. Michael Clark
    Member
    Plugin Author

    Posted 1 year ago #

    Ok, let me explore a little on my test site here, and I'll try to post the code you need to add/edit to your template file. Are you able to upload files directly to your server? Or can you only make changes through the WP editor?

    It'll probably be Friday afternoon before I can get you the code. I already have plans this evening. Thanks for your patience. Mike

  17. thestealthyfox
    Member
    Posted 1 year ago #

    Either or - I can edit or I can upload via FTP.

    Thanks Mike.

  18. Michael Clark
    Member
    Plugin Author

    Posted 1 year ago #

    Try to figure out which file in your theme is the one for your pages. I'd guess it's page.php. What you can do is add a word, like your name, to the file, probably immediately after this code:

    <div id="content">

    So you'd end up with something like:
    <div id="content">MIKE-WAS-HERE

    Then save your change, and reload the news-tem page. If your phrase appears near the top of the page, that is probably the template file that is used to build that page.

  19. thestealthyfox
    Member
    Posted 1 year ago #

    The theme that the Blog Overall page uses is index.php

    I'm assuming the home page pulls from there too, hence why the blog posts are omitted from both.

    Does that sound right?

  20. Michael Clark
    Member
    Plugin Author

    Posted 1 year ago #

    Yes, that sounds right. Is "news-tem" a Page? And is there a page.php file in your theme files? Are "Approach" "Work" and "Get in Touch" also Pages? Which template are they using?

  21. thestealthyfox
    Member
    Posted 1 year ago #

    There isn't a page template - for the other pages they use a template called 'content'.

    The home page is a page which uses the template homepage page.

    Then news is under blog overview which pulls from index.php.

  22. Michael Clark
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, I'm sorry, but I've been swamped and didn't have time to work on this over the weekend. I'm heading out for a road trip, so can't work on it until Friday. What I was going to try to do is hand-craft the query to exclude and include the correct categories in the template for each page. So that would work for your site, but wouldn't be a plugin.

    I'm sorry for the delay, Mike

  23. thestealthyfox
    Member
    Posted 1 year ago #

    Thanks Mike, I appreciate your help with all of this anyway! It's baffling me!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic