meneldil
Forum Replies Created
-
Forum: Plugins
In reply to: [Breadcrumb NavXT] Save problemOk, thanks and in WordPress?
Forum: Plugins
In reply to: [Breadcrumb NavXT] Save problemGood news!!!
I look forward. πForum: Plugins
In reply to: [Breadcrumb NavXT] Save problemThe code is in “functions.php”.
Here is my code:
function cpt_product() { $labels = array( 'name' => 'Products', 'singular_name' => 'Products', 'menu_name' => 'Products', 'name_admin_bar' => 'Products', 'all_items' => 'All Products', 'add_new_item' => 'Add New Product', 'add_new' => 'Add New', 'new_item' => 'New Product', 'edit_item' => 'Edit Product', 'update_item' => 'Update Product', 'view_item' => 'View Product', 'view_items' => 'View Products', 'search_items' => 'Search Product', ); $rewrite = array( 'slug' => 'product', 'with_front' => true, 'pages' => true, 'feeds' => true, ); $args = array( 'label' => 'Product', 'description' => 'Products', 'labels' => $labels, 'supports' => array( 'title', 'thumbnail' ), 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 20, 'menu_icon' => 'dashicons-products', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => 'product', 'exclude_from_search' => false, 'publicly_queryable' => true, 'rewrite' => $rewrite, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'cpt_product', 0 );Forum: Plugins
In reply to: [Radio Buttons for Taxonomies] I can’t hide “No {$taxonomy}” radio buttonThe problem came from me…
I put the function in the wrong file.
Sorry for the inconvenience…Thank you!
- This reply was modified 7 years, 11 months ago by meneldil.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Save problemSo for the moment, impossible to fix the problem?
Forum: Plugins
In reply to: [Breadcrumb NavXT] Save problemHi John,
Are you talking about that?
add_action( 'init', 'cpt_product', 0 );Exactement !
In fact, I would like to disable the automatic deposit of cookies and launch it manually with a function.
- This reply was modified 8 years, 7 months ago by meneldil.
Forum: Plugins
In reply to: [WP Popular Posts] Remove in Console : WPP: OK. Execution timeThanks a lot! π
Forum: Plugins
In reply to: [WP Popular Posts] Remove in Console : WPP: OK. Execution timeOk, it would be better to imagine a button “Debug mode” which will display it on request. π
Forum: Plugins
In reply to: [Redirection] Files and redirectionOk, I’ll watch this.
Thank you very much!Forum: Plugins
In reply to: [Redirection] Files and redirectionNote that on my test environment, the redirect works.
Forum: Plugins
In reply to: [Redirection] Files and redirectionI created a test environment and when I delete the file, the server displays a 404 error in WordPress page (with the graphic theme).
On the other server, I have a 404 error in Apache (in plain text).I guess the problem comes from there?
- This reply was modified 8 years, 10 months ago by meneldil.
Forum: Plugins
In reply to: [Redirection] Files and redirectionPrecisely, the old PDF file no longer exists.
I want to add this redirection to avoid a 404 page.Forum: Plugins
In reply to: [Multisite Language Switcher] Custom post type + Dynamic slug = 404No, they are identical.
Forum: Plugins
In reply to: [Multisite Language Switcher] Custom post type + Dynamic slug = 404I have a supplementary question.
In the plugin settings, I have a “Rewrites Settings” section with a “Car Slug” field.
Is it possible to make this input modifiable? (“readonly” currently)
So the plugin could handle the dynamic translation of custom permalinks (like Polylang or WPML for example).Thanks.