Black Friday sale! Get 25% off WPSP Pro! Discount automatically applied at checkout.

[Resolved] Question about posts that have multiple categories

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Question about posts that have multiple categories

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #8877
    Eric
    Participant

    Hi,

    Sorry if this has been asked elsewhere, but I have a question regarding posts that are marked with multiple categories…

    If I set up a page and I want to use a WPShowPosts list to display all of my posts that fall under a certain specific category — but yet all of my posts are marked under several different categories — is there a way — either already built into the plugin or by way of CSS code — to display (show) just the specific category I want on the front end for the user (and hide the other categories in which those posts also fall under)?

    Please let me know if I’m not making sense.

    Thanks for your help,

    Eric

    • This topic was modified 1 year, 7 months ago by Eric.
    #8894
    Tom
    Keymaster

    Hi there,

    I’m not sure I fully understand. Which posts would you want to hide? Ones that have multiple categories? Do the posts you want to show only belong to one category?

    #8899
    Eric
    Participant

    Hi,

    Yeah, sorry, it’s a bit of an odd question:

    Here is a link that currently shows what I am talking about:
    http://onejourney.net/2019/the-living-book/

    The posts that are listed on this page each have three categories assigned to them.

    On this page (at the link above), I am listing — using your plugin — all posts marked with the “Living Book” category.

    On the front end page it is currently displaying/showing all three categories that are assigned to each post.

    The question is: Would there be any way to display/show just the “source” of the quote, which in this case is “Vernon Howard,” even though the list I am displaying are posts within the “Living Book” category.

    So to explain further, there could be other “Sources” of a quotation within this “Living Book” list (which there will be once I begin to enter the data), such as quotations by Ralph Waldo Emerson, Baruch Spinoza, etc., and I would just want to display/show the person/source/author who said the quotation.

    Hope that makes sense.

    Thanks for your help,

    Eric

    • This reply was modified 1 year, 7 months ago by Eric.
    #8937
    Tom
    Keymaster

    Hmm, I’m not sure categories are the best way to do this.

    What if you used a custom field instead? So for each post you could add an “author” (or whatever) custom field which you could then display. Would that work better for you?

    #8941
    Eric
    Participant

    I’m open to doing it a different way, but I don’t know what a “custom field” is?

    How do I create a custom field such as “author,” then how would that work with the Show Posts plugin?

    #8969
    Eric
    Participant

    Hi Tom,

    Please disregard my last question. I figured out how to go about what I want to do…

    Thanks,

    Eric

    #8977
    Tom
    Keymaster

    Awesome! Glad you got it working 🙂

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.