Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter surpriserom

    (@surpriserom)

    if found in the archive.php, it was bundled in the theme that i have the function the_post(); who was called before calling the have_posts()
    the theme base is WPUtilities and i just see that he was calling the_post() in the beginning of some file :/
    thanks for help esmi

    Thread Starter surpriserom

    (@surpriserom)

    here 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')
    );

    Thread Starter surpriserom

    (@surpriserom)

    i think it’s because it is a custom post, because if i try with default post it work

    Thread Starter surpriserom

    (@surpriserom)

    yes,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 bit

    just 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 idea

    hi,

    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 the function mf_draw_group
    was calling global $post line 108

    after 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 the global $post; by $post = $_GET['post'] to get the right post id, then it display the duplicated field in the admin panel

Viewing 6 replies - 1 through 6 (of 6 total)