• Hi there, I busy setting up a website and I am quite new to WordPress. Im trying to set out the site structure and where to use pages/categories/posts etc. Two of the site sections are ‘stores’ and ‘offers’

    I will be adding stores as posts as part of an overview category. When offers are added they will be added to overview page on ‘offers’ I want to know if there is a way of creating a new subcategory(?) for offers whenever a new store is added?

    e.g.

    If

    Store1 is added as a post to Store category. accessesed on: stores/store1

    automatically create:

    /offers/store1

    /offers/ would show an overview of all offers. /offers/store1/ would show offers for the store in question.

    I hope that makes sense, Im not sure if I am making correct usage of pages/categories/posts..

    My idea was to have each category as the main menu item, linking to an overview of ‘posts’ within each.. If anyone can point me in the right direction I can look into it further.

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Chad

    (@lynneandchad)

    Just a thought, but look into custom post types and custom taxonomies. Maybe you’d be better off with Offers as a custom post type, grouped under a taxonomy of Stores?

    Thread Starter pdg87

    (@pdg87)

    Thanks Chad I will look into taxonomies, I had a brief read earlier and seemed to be similar to what I need.

    I could create each offer grouped to a relevant store. But how would I be able to create a page to list these for each store under offers. e.g

    /offers/Store1 (lists all offers for store1)

    /offers/Store2 (lists all offers for store2)

    Would I have to do it manually?

    Chad

    (@lynneandchad)

    When creating an offer you’d simply chose the store(s) it falls under (just like selecting categories for posts). WordPress should hand the organization for you from there.

    Thread Starter pdg87

    (@pdg87)

    Great thanks, it’s Going to be easier for me to try and put this into practice and see how I get on. I’ll report back ??

    Chad

    (@lynneandchad)

    Cool! I’ll be here ??

    Thread Starter pdg87

    (@pdg87)

    Hi Chad,

    I finally got around to trying this out. This is a better example of what I am trying to acheive:

    https://wordpress.stackexchange.com/questions/191878/how-can-i-achieve-this-site-url-structure

    I couldntreally get the above working. So I am currently trying to use a custom post type with a custom taxonomy. Custom post type is ‘offers’ with a custom taxonomy ‘stores’. I am getting there but url’s are not behaving quite right.

    site.com/offers – loads
    site.com/offers/storename/offer-post – loads
    site.com/offers/storename – does not load (this should be a list of offers for that store taxonomy)

    Also, I am using breadcrumbs plugin and the link generated for this:

    displays as: site.com/offers/%stores_slug%/storename

    Something not quite right with my rewrite rules?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Site Structure and dynamic pages’ is closed to new replies.