surpriserom
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: have_posts() wrong result in archive.phpif found in the archive.php, it was bundled in the theme that i have the function
the_post();
who was called before calling thehave_posts()
the theme base is WPUtilities and i just see that he was callingthe_post()
in the beginning of some file :/
thanks for help esmiForum: Fixing WordPress
In reply to: have_posts() wrong result in archive.phphere is the
$arg
of my custom post$arg = array( 'labels' => array( 'name' => __( 'Fiche élus', AMF_IDMTXTDMN ), 'singular_name' => __( 'Fiche élu', AMF_IDMTXTDMN ), 'add_new' => __('Ajouter une fiche d'élu', AMF_IDMTXTDMN ), 'add_new_item' => __('Ajouter une fiche élu', AMF_IDMTXTDMN ), 'edit_item' => __('Editer une fiche élu', AMF_IDMTXTDMN ), 'new_item' => __('Nouvel fiche élu', AMF_IDMTXTDMN ), 'view_item' => __('Voir la fiche élu', AMF_IDMTXTDMN ), 'search_items' => __('Rechercher une fiche élu', AMF_IDMTXTDMN ), 'not_found' => __('Fiche élu non trouvé', AMF_IDMTXTDMN ), 'not_found_in_trash' => __('Fiche élu non trouvé dans la corbeille', AMF_IDMTXTDMN ), 'parent_item_colon' => ''), 'rewrite' => array( 'slug' => 'fiche-elu' ), 'supports' => array('thumbnail', 'title') );
Forum: Fixing WordPress
In reply to: have_posts() wrong result in archive.phpi think it’s because it is a custom post, because if i try with default post it work
Forum: Fixing WordPress
In reply to: have_posts() wrong result in archive.phpyes,it is, and when I unpublished one of the 2 article i have it’s send me also a false, and show me nothing,
well I will have multiple article too publish so it won’t be a problem, but it surprised me and confused me a bitForum: Plugins
In reply to: [Post Ratings] text-indent for star screenreader text not sufficientjust puting text on another side of screen is not clean,
I remove the text indent from css and put
.ratings a { font-size:1px; }
like that, you can’t see them, except if you zoom in a lot.
it’s should just be fixed like that, for blind people terminal, the css is not recognized, so displaying the rating that way is a good ideaForum: Plugins
In reply to: [Magic Fields 2] Fields Not Saving After Publishhi,
got the problem, duplicated field, saved in database, i can see them in single.php but not in admin panel,
after a work around, i found that in file admin/mf_post.php thefunction mf_draw_group
was callingglobal $post
line 108after making a var_dump, it seen that it got the wrong post, so wrong post id for the
function mf_get_duplicated_fields_by_group
who should display to scrip the number of duplicated fields is save in database, so i just removed each$post->ID
by a$post
and theglobal $post;
by$post = $_GET['post']
to get the right post id, then it display the duplicated field in the admin panel