Home › Forums › General Help › Permalinks Issue
- This topic has 8 replies, 2 voices, and was last updated 13 years, 1 month ago by Kelvin.
-
AuthorPosts
-
September 22, 2011 at 1:09 pm #921KelvinKeymaster
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:
http://www.example.com/products
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:
- Change the page permalink away from “products”. You can use “product” or “shop”, etc.
- You can edit DukaPress code to change the default archive permalink away from “products”
September 22, 2011 at 2:36 pm #931deetergroupGuest2.You can edit DukaPress code to change the default archive permalink away from “products”
Where can I find the section to change?
September 22, 2011 at 4:01 pm #934whamGuestdp-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.
September 28, 2011 at 12:49 pm #974Paul LittlefieldGuestFantastic, this fixed my problem, thank you!
October 20, 2011 at 2:35 pm #1235PikouseGuestHi.
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 JeuxI’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 :
[dpsc_display_product]
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 ?
Thanks
October 20, 2011 at 2:37 pm #1236PikouseGuestLast thing : my permalinks are configured like this : /%category%/%postname%/
(excuse me for me error in the previous post … tag problem I think)
October 21, 2011 at 12:17 pm #1265KelvinKeymaster@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.
October 21, 2011 at 6:19 pm #1273PikouseGuestI’ve hidden the page for the users.
Its addresse is : http://www.euredesjeux.fr/liste-des-jeux-dukapress/
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.
October 22, 2011 at 4:56 pm #1300KelvinKeymasterHmm, is it possible for you to add duka(at)dukapress.org so that I check it out?
-
AuthorPosts
- The topic ‘Permalinks Issue’ is closed to new replies.