facem Web
Forum Replies Created
-
Forum: Plugins
In reply to: [AMP] how to refresh noscripthttps://facemweb.com/wordpress/plugins/login-logout-register-menu/amp
here it is<noscript><img class="wp-image-2282 aligncenter" src="https://wordpress.facemweb.com/wp-content/uploads/2017/11/Capture2-300x115.jpg" alt="Login Logout Register Menu 2" width="373" height="143" srcset="https://wordpress.facemweb.com/wp-content/uploads/2017/11/Capture2-300x115.jpg 300w, https://wordpress.facemweb.com/wp-content/uploads/2017/11/Capture2-768x293.jpg 768w, https://wordpress.facemweb.com/wp-content/uploads/2017/11/Capture2-1024x391.jpg 1024w, https://wordpress.facemweb.com/wp-content/uploads/2017/11/Capture2.jpg 1344w" sizes="(max-width: 373px) 100vw, 373px" /></noscript>
Forum: Plugins
In reply to: [Post Gallery] Fatal error at activationlast update solved the issue, thanks for your reaction.
Forum: Developing with WordPress
In reply to: removing specific slug from urlhere for the post type
function cptui_register_my_cpts_entreprises() { /** * Post Type: entreprises. */ $labels = array( "name" => __( "entreprises", "" ), "singular_name" => __( "entreprise", "" ), ); $args = array( "label" => __( "entreprises", "" ), "labels" => $labels, "description" => "", "public" => true, "publicly_queryable" => true, "show_ui" => true, "show_in_rest" => false, "rest_base" => "", "has_archive" => true, "show_in_menu" => true, "exclude_from_search" => false, "capability_type" => "post", "map_meta_cap" => true, "hierarchical" => true, "rewrite" => array( "slug" => "entreprises", "with_front" => true ), "query_var" => true, "menu_icon" => "dashicons-admin-home", "supports" => array( "title", "editor", "thumbnail", "excerpt", "trackbacks", "custom-fields", "page-attributes", "post-formats" ), "taxonomies" => array( "caterogies_entreprises", "type_de_vente", "localisation", "immobilier_professionnel" ), ); register_post_type( "entreprises", $args ); } add_action( 'init', 'cptui_register_my_cpts_entreprises' );
and here for the tax
function cptui_register_my_taxes_caterogies_entreprises() { /** * Taxonomy: Catégories entreprises. */ $labels = array( "name" => __( "Catégories entreprises", "" ), "singular_name" => __( "Catégorie entreprise", "" ), ); $args = array( "label" => __( "Catégories entreprises", "" ), "labels" => $labels, "public" => true, "hierarchical" => true, "label" => "Catégories entreprises", "show_ui" => true, "show_in_menu" => true, "show_in_nav_menus" => true, "query_var" => true, "rewrite" => array( 'slug' => 'caterogies_entreprises', 'with_front' => true, ), "show_admin_column" => false, "show_in_rest" => false, "rest_base" => "", "show_in_quick_edit" => false, ); register_taxonomy( "caterogies_entreprises", array( "entreprises" ), $args ); } add_action( 'init', 'cptui_register_my_taxes_caterogies_entreprises' );
Forum: Plugins
In reply to: [Custom Post Type UI] subcategories 404Here are the current settings for all cpt and ctax:
function cptui_register_my_cpts() { /** * Post Type: entreprises. */ $labels = array( "name" => __( "entreprises", "" ), "singular_name" => __( "entreprise", "" ), ); $args = array( "label" => __( "entreprises", "" ), "labels" => $labels, "description" => "", "public" => true, "publicly_queryable" => true, "show_ui" => true, "show_in_rest" => false, "rest_base" => "", "has_archive" => true, "show_in_menu" => true, "exclude_from_search" => false, "capability_type" => "post", "map_meta_cap" => true, "hierarchical" => true, "rewrite" => array( "slug" => "entreprises", "with_front" => true ), "query_var" => true, "menu_icon" => "dashicons-admin-home", "supports" => array( "title", "editor", "thumbnail", "excerpt", "trackbacks", "custom-fields", "page-attributes" ), "taxonomies" => array( "caterogies_entreprises", "type_de_vente", "localisation", "immobilier_professionnel" ), ); register_post_type( "entreprises", $args ); } add_action( 'init', 'cptui_register_my_cpts' );
function cptui_register_my_taxes() { /** * Taxonomy: Catégories entreprises. */ $labels = array( "name" => __( "Catégories entreprises", "" ), "singular_name" => __( "Catégorie entreprise", "" ), ); $args = array( "label" => __( "Catégories entreprises", "" ), "labels" => $labels, "public" => true, "hierarchical" => true, "label" => "Catégories entreprises", "show_ui" => true, "show_in_menu" => true, "show_in_nav_menus" => true, "query_var" => true, "rewrite" => array( 'slug' => 'caterogies_entreprises', 'with_front' => true, ), "show_admin_column" => false, "show_in_rest" => false, "rest_base" => "", "show_in_quick_edit" => false, ); register_taxonomy( "caterogies_entreprises", array( "entreprises" ), $args ); /** * Taxonomy: types de vente. */ $labels = array( "name" => __( "types de vente", "" ), "singular_name" => __( "type de vente", "" ), ); $args = array( "label" => __( "types de vente", "" ), "labels" => $labels, "public" => true, "hierarchical" => false, "label" => "types de vente", "show_ui" => true, "show_in_menu" => true, "show_in_nav_menus" => true, "query_var" => true, "rewrite" => array( 'slug' => 'type_de_vente', 'with_front' => true, ), "show_admin_column" => false, "show_in_rest" => false, "rest_base" => "", "show_in_quick_edit" => false, ); register_taxonomy( "type_de_vente", array( "entreprises" ), $args ); /** * Taxonomy: localisations. */ $labels = array( "name" => __( "localisations", "" ), "singular_name" => __( "localisation", "" ), ); $args = array( "label" => __( "localisations", "" ), "labels" => $labels, "public" => true, "hierarchical" => false, "label" => "localisations", "show_ui" => true, "show_in_menu" => true, "show_in_nav_menus" => true, "query_var" => true, "rewrite" => array( 'slug' => 'localisation', 'with_front' => true, ), "show_admin_column" => false, "show_in_rest" => false, "rest_base" => "", "show_in_quick_edit" => false, ); register_taxonomy( "localisation", array( "entreprises" ), $args ); /** * Taxonomy: immobilier professionnel. */ $labels = array( "name" => __( "immobilier professionnel", "" ), "singular_name" => __( "immobilier professionnel", "" ), ); $args = array( "label" => __( "immobilier professionnel", "" ), "labels" => $labels, "public" => true, "hierarchical" => false, "label" => "immobilier professionnel", "show_ui" => true, "show_in_menu" => true, "show_in_nav_menus" => true, "query_var" => true, "rewrite" => array( 'slug' => 'immobilier_professionnel', 'with_front' => true, ), "show_admin_column" => false, "show_in_rest" => false, "rest_base" => "", "show_in_quick_edit" => false, ); register_taxonomy( "immobilier_professionnel", array( "entreprises" ), $args ); } add_action( 'init', 'cptui_register_my_taxes' );
permalink are for cpt are domain/post_type/custom_tax/title
- This reply was modified 7 years ago by facem Web.
Forum: Plugins
In reply to: [Custom Post Type UI] subcategories 404cpt and custom tax are both on hierarchical true. For now, I have no clue about how have good urls for more than one categorie level.
The CPT have /%custom_category%/%postname%/ permalink setup. But it doesn’t work like it should be. The singles have the same setup (/%category%/%postname%/) and have no issues.
Forum: Plugins
In reply to: [WP Custom Fields Search] Preset page blankI’ve correcetd those 2 lines, but the page is still blank. The plugin is impossible to use.
Forum: Fixing WordPress
In reply to: wp_mail() sending twiceDude it worked !
The $nom variable verification is simple and smart, I searched too complicated solution.
Anyway, I had to unset the is_page() in the if, the $nom != ” is enought to block the twice sending.Thanks a lot !
Forum: Fixing WordPress
In reply to: wp_mail() sending twiceMaybe the plage is loaded twice. One time without the session variable and one with it. But I don’t know how to sned the mail when the page is fully loaded.
Forum: Fixing WordPress
In reply to: wp_mail() sending twiceyes it’s that page, I’ve recieved the twice mails some minutes ago.
Forum: Fixing WordPress
In reply to: wp_mail() sending twiceHi, thanks for the answer.
For seeing that page, you have to follow the payment process, but you can cancel the payment once you’re in the bank portal, it will redirect you to the page where the mails are sent.
Don’t see any solution and truly need to be able to get the custom post categories …
No one have a clue ?
Forum: Plugins
In reply to: [Yoast SEO] function error since 5.7 versionJust seen that 5.7.1 was online. But the issue is still here.
Forum: Developing with WordPress
In reply to: override wp-login.php functionsThanks, that’s exactly what I was seaarching for, I only changed the core until I get that solution.
Forum: Plugins
In reply to: [Groups] No more group listing in admin user pageThanks for the quick respond.
But it doesn’t solve my problem, I may gave a bad description of it. I’m not interested by the gourp’s list in user profiles, but in the list of users :
- This reply was modified 8 years, 1 month ago by facem Web.
Forum: Plugins
In reply to: [Popups - WordPress Popup] Take over issueThanks, I mixed up master and devellop branch.