Permalinks Issue

Home Forums General Help Permalinks Issue

This topic contains 8 replies, has 2 voices, and was last updated by  Kelvin 6 years, 4 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
  • #921


    If you create a page named “Products” and you use anything but the default WordPress permalink setting, you will often end up with a page whole URL will be like:

    Unfortunately, this page will not be displayed correctly by DukaPress. This is because DukaPress by default uses the “products” permalink to display its archives.

    To solve you can do either:

    1. Change the page permalink away from “products”. You can use “product” or “shop”, etc.
    2. You can edit DukaPress code to change the default archive permalink away from “products”


    2.You can edit DukaPress code to change the default archive permalink away from “products”

    Where can I find the section to change?



    dp-prduct.php around line 788

    The code itself looks like:

    'rewrite' => array('slug' => 'products', 'with_front' => false)

    Change the ‘products’ to be whatever you want.


    Paul Littlefield

    Fantastic, this fixed my problem, thank you!



    I’ve got a problem with my dukapress config and it seems to be a permalink problem just like this one.

    My web site is all in french, I hope that it’s not a french problem 🙂
    Eure des Jeux

    I’ve created a page with only this in:
    [dpsc_grid_display category=”7” total=”12″ column=”3″ per_page=”4″ type=”duka” order=”DESC”]
    My games are weel displayed (with light for the moment).
    When I click on a link to display the game (product) page, the page is not found.
    My products are very simple too :
    Encore un jeu pour voir ce que cela donne !

    I’ve tried to change the permalinks from products to games but I can’t manage with this bug … could you find a way to fix it ?




    Last thing : my permalinks are configured like this : /%category%/%postname%/

    (excuse me for me error in the previous post … tag problem I think)



    @Pikouse where on your site is your “Grid” page?

    Also, could you please post the code that you edited? So that I can see if it is correctly done.



    I’ve hidden the page for the users.
    Its addresse is :
    It only contains [dpsc_grid_display category=”7” total=”12″ column=”3″ per_page=”4″ type=”duka” order=”DESC”]
    (it’s not finalised : i have to remove the “add to basket” for example but it doesn’t matter fot the moment)

    I changed the dp_create_post_type function like this :
    function dp_create_post_type() {
    register_post_type(‘duka’, array(
    ‘labels’ => array(
    ‘name’ => __(‘Products’, “dp-lang”),
    ‘singular_name’ => __(‘Product’, “dp-lang”),
    ‘add_new’ => __(‘Add New Product’, “dp-lang”),
    ‘add_new_item’ => __(‘Add New Product’, “dp-lang”),
    ‘edit’ => __(‘Edit’, “dp-lang”),
    ‘edit_item’ => __(‘Edit Product’, “dp-lang”),
    ‘new_item’ => __(‘New Product’, “dp-lang”),
    ‘view’ => __(‘View Product’, “dp-lang”),
    ‘view_item’ => __(‘View Product’, “dp-lang”),
    ‘search_items’ => __(‘Search Products’, “dp-lang”),
    ‘not_found’ => __(‘No products found’, “dp-lang”),
    ‘not_found_in_trash’ => __(‘No products found in Trash’, “dp-lang”)
    ‘description’ => __(‘Products for use with DukaPress’, “dp-lang”),
    ‘public’ => true,
    ‘show_ui’ => true,
    ‘capability_type’ => ‘post’,
    ‘taxonomies’ => array(‘category’, ‘post_tag’),
    ‘menu_position’ => null,
    ‘publicly_queryable’ => true,
    ‘exclude_from_search’ => false,
    ‘query_var’ => true,
    ‘hierarchical’ => false,
    ‘menu_icon’ => DP_PLUGIN_URL . ‘/images/dp_icon.png’,
    ‘rewrite’ => array(‘slug’ => ‘games’, ‘with_front’ => false),
    ‘has_archive’ => true,
    ‘supports’ => array(‘title’, ‘editor’, ‘author’, ‘thumbnail’, ‘excerpt’, ‘comments’, ‘custom-fields’, ‘posts’, ‘revisions’, ‘trackbacks’)

    I just changed the ‘products’ to ‘games’.

    The main problem is that my products are not available at the address given to by the permalink.

    Thank you for your answer.



    Hmm, is it possible for you to add duka(at) so that I check it out?

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Permalinks Issue’ is closed to new replies.

© 2018 DukaPress. All rights reserved.
Design By Madoido.