• Resolved ValeriaK

    (@valeriak)


    Hi!
    I’m having problem, that when I click on the category name in the blog it doesn’t show any posts 8althought in dashboard it shows how many posts are there. I’m getting this:

    No entries were found under the The Hair category either because they were not published or this category has been excluded from the Blog section.

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

Viewing 10 replies - 16 through 25 (of 25 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    To start, a list of the files in the theme. If you have the files locally on your computer, a screenshot of the theme folder contents should do. That’ll give me enough to recommend what to open next.

    Thread Starter ValeriaK

    (@valeriak)

    I took a screenshot of the main folder:
    http://www.valeriaspeck.com/images/all.png

    Should I open others and take a screenshot too?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Nah, could you open the archive.php file, shown as just “archive” in the screenshot, and paste the contents into a pastebin at pastebin.com? I’m curious the logic in that file. From what I can see, it’s going to be the file used for both post type archives and category archives, but what it does inside the file could be anything.

    Thread Starter ValeriaK

    (@valeriak)

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    So I’ve looked over the archive.php file the best I can, and admittedly there’s a lot of function use that I don’t have the function definitions for. However, I can determine that around line 28 of the pastebin is where it seems to diverge between output. For the post type archive, I can find that "post-top" class in the markup, but I can not in the category archive.

    In relation to some of the first parts you were seeing at the top of the thread, is line 67, where you get that "No entries were found under..." message. That only ends up being encountered if there are no posts to show, which is true originally, and if a category archive.

    At this point, it may be best to consult the support for the theme itself, as I don’t have enough information, and since it’s a premium theme, I can’t accept being sent the entire thing, no matter how noble the intention.

    Thread Starter ValeriaK

    (@valeriak)

    Thanks!
    As I said before I needed to make sure that it is about the theme. Now I can ask the theme support for the solution.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Word, glad I could provide some clarity.

    Thread Starter ValeriaK

    (@valeriak)

    Yeah! Thanks)

    I’m having the same problem with UDesign: http://www.pammcvitie.co.uk/

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Jimbo my answers aren’t going to end up changing here. Still not something we directly control with CPTUI and needs to be added into the archives via the pre_get_posts hook and whatnot.

Viewing 10 replies - 16 through 25 (of 25 total)

The topic ‘Problem with Categories’ is closed to new replies.