• volcomjon

    (@volcomjon)


    Hi there.

    I have created a custom post type for “products” and a custom page template to pull in and loop through the custom post types (page-products.php) – however – when viewing the custom post types I would like the url to be different from the following:

    https://www.blogname.com/products/productname

    e.g – I do NOT want the /products/ part in the url, instead I would like it to be replaced with something else…… ideally… a value from the individual product post custom field

    my IDEAL situation would be to have the following, however my knowledge of php and url rewrites is a little on the “shy” side shall we say, and therefore desperately need your help.

    option 1:
    to explictly set the full url (from the root domain) against each post type, maybe using a custom field?

    option 2:
    using an already existing custom field to adjust the url accordingly, for example the final url I would like to see is:

    https://www.blogname.com/brandname/productname

    brandname = custom field
    productname = title of custom post type (this isnt where the problem is)

    it doesnt really matter how this is performed or by which method (even using .htaccess) – it just needs to be done ??

    I REALLY NEED SOME GUIDANCE OR HELP ON THIS. ANY ADVICE OR TIPS VERY WELCOME

  • The topic ‘Custom Post Type / Permalink / URL Rewrite’ is closed to new replies.