Saharnava
Forum Replies Created
-
I fixed it by just removing the template_redirect. Now it is working. Thank you for your help.
Hope your gonna find soon how to make Publicize working with custom post.I see where it’s coming from :
// Template selection if ( ! function_exists( 'grimoire_template_redirect' ) ) { function grimoire_template_redirect() { global $wp_query, $post, $posts; if( 'recette' == get_post_type() && $wp_query->is_single ) { include( GRIMOIRE_PATH . '/templates/single-recette.php' ); exit(); } else if( 'ingredient' == get_post_type() && $wp_query->is_single ) { include( GRIMOIRE_PATH . '/templates/single-ingredient.php' ); exit(); } elseif( 'recette' == get_post_type() && $wp_query->is_category ){ include( GRIMOIRE_PATH . '/templates/category-recette.php' ); exit(); } elseif( 'ingredient' == get_post_type() && $wp_query->is_category ){ include( GRIMOIRE_PATH . '/templates/category-ingredient.php' ); exit(); } } } add_action("template_redirect", 'grimoire_template_redirect');
I have no idea how to fix it…
Hello Jeremy
I disabled everything, except my plugin containing the code for my custom posts and I still have the problem… So it seems to come from my code…Unfortunately it’s not working : Facebook, Twitter, G+ et Pinterest buttons open a popup which reload the page inside and does not propose to share this. And the mail button does not send anything.
I tested it on Chrome, Safari and Firefox on Mac and on IE 8 and Firefox on PC. Same problem…Thank you Jeremy.
And what about Sharedaddy?Thank you very much Jeremy !!!!!
I have no idea of what I did wrong… ?? I hope they’re gonna find.Hello Jeremy
No I created them with PHP. Here is the code
function create_grimoire() { register_post_type( 'recette', array( 'labels' => array( 'name' => __( 'Recettes' ), 'singular_name' => __( 'Recette' ), 'add_new' => __( 'Ajouter' ), 'all_items' => __( 'Toutes les recettes' ), 'add_new_item' => __( 'Ajouter une nouvelle recette' ), 'edit_item' => __( 'Modifier cette recette' ), 'new_item' => __( 'Nouvelle recette' ), 'view_item' => __( 'Afficher cette recette' ), 'search_items' => __( 'Rechercher des recettes' ), 'not_found' => __( 'Aucune recette disponible' ), 'not_found_in_trash' => __( 'Aucune recette disponible dans la poubelle' ), 'parent_item_colon' => '', 'menu_name' => __( 'Recettes' ) ), 'description' => __( 'Toutes les recettes de le grimoire' ), 'public' => true, 'query_var' => true, 'has_archive' => true, 'menu_position' => 5, 'capability_type' => 'post', 'hierarchical' => false, 'taxonomies' => array( 'post_tag', 'category' ), 'supports' => array( 'title', 'editor', 'excerpt', 'custom-fields', 'revisions', 'thumbnail', 'comments', 'trackbacks' ) ) ); register_post_type( 'ingredient', array( 'labels' => array( 'name' => __( 'Ingrédients' ), 'singular_name' => __( 'Ingrédient' ), 'add_new' => __( 'Ajouter' ), 'all_items' => __( 'Tous les ingrédients' ), 'add_new_item' => __( 'Ajouter un nouvel ingrédient' ), 'edit_item' => __( 'Modifier cet ingrédient' ), 'new_item' => __( 'Nouvel ingrédient' ), 'view_item' => __( 'Afficher cet ingrédient' ), 'search_items' => __( 'Rechercher des ingrédients' ), 'not_found' => __( 'Aucun ingrédient disponible' ), 'not_found_in_trash' => __( 'Aucun ingrédient disponible dans la poubelle' ), 'parent_item_colon' => '', 'menu_name' => __( 'Ingrédients' ) ), 'description' => __( 'Tous les ingrédients du grimoire' ), 'public' => true, 'query_var' => true, 'has_archive' => true, 'menu_position' => 6, 'capability_type' => 'post', 'hierarchical' => false, 'taxonomies' => array( 'post_tag', 'category' ), 'supports' => array('title', 'editor', 'excerpt', 'custom-fields', 'revisions', 'thumbnail', 'comments', 'trackbacks' ) ) ); } add_action( 'init', 'create_grimoire' );
A link to a “recette” : https://www.saharnava.fr/recette/gel-douche-a-la-noix-de-coco/
A link to a “ingrédient”: https://www.saharnava.fr/ingredient/amande-douce/Thank you for your help
Forum: Plugins
In reply to: No menu on archive pagesThank you nikospkrk, you just save my day ??
Forum: Plugins
In reply to: [More Fields] More Fields (2.1) incompatible with WP 3.3For people using ACP and having issues with the WYSIWYG, here is a solution : https://support.plugins.elliotcondon.com/discussion/comment/2909#Comment_2909
I tried it and ACP works perfectly now.