Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter yucelm

    (@yucelm)

    Hi, thanks for the insightful tip! However, I don’t need guidance on the technical part, it is rather the workflow and methodology of building such pages. Thanks anyways.

    Thread Starter yucelm

    (@yucelm)

    Well, if you decide to do a tutorial on this issue with a clean and functional approach, I am sure many people will love you for it ??

    I have also come across this on YouTube: https://www.youtube.com/watch?v=ECFVrBoQYRw&feature=share

    From technical standpoint, I am not sure if it overloads any part of WP core more than necessary or, even if it is the best approach or not but, since you know a lot more then about me on this subject matter, I thought you may wanna check this out.

    Thread Starter yucelm

    (@yucelm)

    Well, I am also searching for the best possible solution and I am not so keen on this “hacky method” either. However, “products/category/product-name” should be possible somehow.

    I have spent way too much for this issue and still no avail, how come am I the only one with this problem? Don’t pople nest their custom post types with custom taxonomy?

    Some travel sites have urls like europe/germany/berlin/somehotel etc… for example.

    But howwwwwwwwww? ??

    Btw, I really appreciate the help and if you accidentally come across any “more elegant” solution, please let me know…

    Thread Starter yucelm

    (@yucelm)

    Thread Starter yucelm

    (@yucelm)

    Thanks so much for the effort. I really appreciate that.

    Thread Starter yucelm

    (@yucelm)

    Hi again ??

    I sort of understand what you mean, since I am not a expert on this subject matter.

    What do you think would be the best way to accomplisg this? Because I have seen WP sites with the same hierarchy.

    I have also drew a simple diagram to better explain the situation you. As I may have missed some details!

    Here it is: https://drive.google.com/file/d/1F8ktJ9ON0siWQrsT3z2lbwNPQhsCkiqf/view?usp=sharing

    Thread Starter yucelm

    (@yucelm)

    Hi,

    Actually I am sure it is possible but no one seems to have done it this way.

    This one: https://www.mysite.com/products/paints/product-1

    /products: a page with some UI cards (each card corresponds to one custom tax. term)

    /paints: custom taxonomy term – all single custom posts types attached to this term shows up here

    /product-1: single custom post type (single product)

    First two steps are ok, I am only having an issue with the last step. When I click the single post type (product), it says “not found” but the product exists. So it just cannot find it.

    Really frustrating process.

    ADDITION: It will be one custom post type under a custom taxonomy. Normally it works fine (if I leave the custom taxonomy slug as “product_categories”) but I did re-write the slug as “products” because that’s the URL I want to show.

    • This reply was modified 4 years, 2 months ago by yucelm.
    • This reply was modified 4 years, 2 months ago by yucelm. Reason: addition
    Thread Starter yucelm

    (@yucelm)

    Hello Michael,

    Hope you are doing well. I had a question for you and I would appreciate if you could help me out.

    I have created my CPT “products” and my taxonomy “product_categories” then I set the taxonomy’s “Custom Rewrite Slug” as “products”

    I have a static page named “products” with links to only my main categories.
    When I click one of the links “Paints” it gives me

    “www.mysite.com/products/paints”

    where all CPT’s with “Paint” taxonomy is visible, this is great so far.
    The problem occurs when I click the individual product (single) n that page, it says “Not Found” and the url is “www.mysite.com/products/product-1”

    it should be: “www.mysite.com/products/paints/product-1”

    I guess I need to set a re-write rules for this correct?

    If so, can you point me out to the right direction?

    I have searched on Stack Overflow and Google but none of the methods worked.

    Many thanks in advance.

    • This reply was modified 4 years, 2 months ago by yucelm. Reason: typo
    Thread Starter yucelm

    (@yucelm)

    Hello Michael,

    I didn’t wanna create a new post for this but I have a quick question for you. I would appreciate if you could help me out.

    I understand the point of creating hierarchical custom post types so we can have nested url’s.

    What is the main reason/purpose or use case for creating hierarchical custom taxanomies? What is the benefit or advantage of it?

    Thanks a lot in advance.

    • This reply was modified 4 years, 8 months ago by yucelm. Reason: typo
    Thread Starter yucelm

    (@yucelm)

    I build maybe 30 sites with just plain html, bootstrap, jquery. This is my first WP project. Although I understand the core concepts (and really like it) I don’t think it is the most intuative platform to use for beginers unless they are using stoc themes. I am using Genesis framework and modifying the sample theme, after 4 days of fiddling around, I just got a clear idea on how to do things ??

    I found your pluging extremely helpful and thank you for that. If I have any questions, I will definitely ask ??

    Cheers…

    Thread Starter yucelm

    (@yucelm)

    Hi,

    You are right, my permalinks have to be combination of page url’s and cpt slugs.

    I have enabled the archive function for products and also filtered the top level posts on the page but I had an issue with it. I could only sort the posts either ascending or descending and I wanted to keep them in a specific order.

    So I disabled the archive page, create a normal page as “products” and added some selection divs for each top level category while keeping the taxanomy in tact. So it looks like this. Products Page (9 different categories) I select a category and it would go to CPT archive page for that specific category. So I have the url structure I want and everything works fine.

    Only thing I need to do is to place a seacrh/filter functionality on the archive pages (sidebar) and add ajax loading.

    I am developing my skills as I am building this site and I wish there were more tutorials about the technical aspect of CPT’s.

    Thanks for your help again.

    Thread Starter yucelm

    (@yucelm)

    Ok I got it ?? I had to put port number as well like “localhost:3308” localhost by itself didn’t work.

    Thread Starter yucelm

    (@yucelm)

    Hi,

    I have another question if you don’t mind ??

    I have created custom post type called “Services” with an archive page “services” this CPT is hierarchical. I also created custom taxonomies (also hierarchical) such as “Service 1” and “Service 2” and so on. However, there are also some sub-categories for these as well, like “Service 1.1” “Service 1.2” etc..

    Services (main archive page)
    – Service 1
    — Service 1.1
    — Service 1.2
    -Service 2
    — Service 2.1
    — Service 2.2

    Right now my archive page shows all custom post types that has been categorized as “Services” but on the main archive page, I just want to display the top-level pages and when I click those links, they will display their child items.

    Thanks a lot.

    Thread Starter yucelm

    (@yucelm)

    Excellent. Thanks a lot.

    Thread Starter yucelm

    (@yucelm)

    Hi,

    Thanks for your answers. Actually, I had set up both of them to “true” but it still doesn’t work for some reason. Maybe I am doing something wrong, I will keep playing around and if no solution is found, I will share more details ??

    It is weird because I do everything according to your plugin’s guidelines but keep getting those flat urls.

Viewing 15 replies - 1 through 15 (of 16 total)