Forum Replies Created

Viewing 15 replies - 1 through 15 (of 73 total)
  • Thread Starter sangkavr

    (@sangkavr)

    Google said that my posts are not indexed because of a no index tag but in rankmath the option is not flagged.
    What’s going on?
    https://postimg.cc/YvFMfpjK

    • This reply was modified 3 years, 2 months ago by sangkavr.
    Thread Starter sangkavr

    (@sangkavr)

    As you can see I have some errors on that sitemap
    https://postimg.cc/JDjKyWtQ

    Further I’ve noticed that google is not indexing posts since two days.

    • This reply was modified 3 years, 2 months ago by sangkavr.
    • This reply was modified 3 years, 2 months ago by sangkavr.
    Thread Starter sangkavr

    (@sangkavr)

    Hi, thank for your answer.
    I’ve done all your suggestions but it doesn’t work, category sitemap is empty ??

    Thread Starter sangkavr

    (@sangkavr)

    HI, thanks fro your reply.
    I always use Health check for this issues.
    I asked here because your plugin has a better support but actually it seems I need to choose between the two plugins and I really need the other plugin because of that specific permalink. But if you have any suggestion please tell me.

    Thread Starter sangkavr

    (@sangkavr)

    That’s the point. With “single category permalink” I obtain the link I want (domain/year/month/2019/05/category2/category3/category4/title/id) while without it I obtain the undesired permalink (domain/year/month/2019/05/CATEGORY1/category2/category3/category4/title/id). The redirect is handled by wordpress to have the default permalink (without single category plugin).
    I see this issue in local too (xampp), so it doesn’t seem a server issue.

    • This reply was modified 3 years, 3 months ago by sangkavr.
    Thread Starter sangkavr

    (@sangkavr)

    Actually for each post I’d need to get featured image and insert it before text and then do something about galleries in some posts.

    Thread Starter sangkavr

    (@sangkavr)

    Actually I alread have a custom solution but it doesn’t work.
    I’m not able to write serialized data in post_meta table in the right way and when I save data I’m not able to obtain the select categories that I selected before.

    // start sticky categories
    
    /**
     * Check if category belongs to Aree
     */
    function is_areas_child($cat_id) {
        $parents = explode("|", get_category_parents($cat_id, false, "|"));
        if (in_array("Aree", $parents)) {
            return TRUE;
        }
        return FALSE;
    }
    
                add_action('add_meta_boxes', 'post_options_metabox');
    
                add_action('edit_post', 'post_options_metabox', 1);
    
                add_action('save_post', 'save_post_options');
    
                /**
                 *  Adds a box to the main column on the Post edit screen
                 *
                 */
                function post_options_metabox() {
                    $areas_root = get_category_by_slug('aree');
                    if (empty($areas_root)) {
                        echo '<div id="message" class="error">';
                        _e("Categoria parent \"Aree\" not defined!<br />");
                        _e("Select a first level category \"Aree\" and then add cities categories inside.");
                        echo '</div>';
                    } else {
                        add_meta_box('post_options', __('Posizionamento personalizzato'), 'post_options_code', 'post', 'normal', 'high');
                    }
                }
    
    			//end function
    
                /**
                 *  Form inside post creation page.
                 */
                function post_options_code($post) {
    
                    wp_nonce_field(plugin_basename(__FILE__), $post->post_type . '_noncename');
    
                    $areas_root = get_category_by_slug('aree');
                    $pzones = get_post_cats($post);
                    ?>
                    <div class="alignleft">
                        <?php
                        get_position_form($pzones, $post);
                        ?>
                    </div>
                    <div class="clear"></div>
                    <hr />
                    <?php
                }
    
                function get_position_form($pzones, $post) {
    
                    $areas_pcat = get_category_by_slug('aree');
                    $a_pid = $areas_pcat->term_id; //ID "Aree" category
    
                    $feat_area = get_post_meta($post->ID, 'post_featured_area', true); //area privilegiata per il post //da utilizzare nel caso si voglia esprimere una preferenza per il breadcrumb
                    $select_opts = '<table id="position_form_controls">';
                    $select_opts .= '<th>Categoria</th><th>In Evidenza</th><th>Area privilegiata</th>';
    
                    if ($pzones) {
                        foreach ($pzones as $cat) {
                            $ppos = get_post_position($post->ID, $cat->cat_ID);
    						if (is_areas_child($cat->cat_ID)) {
                            $select_opts .= '<tr id="control_' . $cat->cat_ID . '"><td>' . $cat->name . '</td>';
                            $select_opts .= '<td><input type="checkbox" name="sticky_area" value="' . $cat->cat_ID . '" ' . (($cat->cat_ID == $sticky_area) ? 'checked' : '') . '></td>';
                            $select_opts .= '<td><input type="radio" name="featured_area" value="' . $cat->cat_ID . '" ' . (($cat->cat_ID == $feat_area) ? 'checked' : '') . '></td>';
                            $select_opts .= '</tr>';}
                        }
                    }
                    $select_opts .= '</table>';
                    echo $select_opts;
    
                }
    
                /**
                 * Extract all the Aree categories associated to the post 
                 */
                function get_post_cats($post) {
    
                    $pcats = get_the_category($post->ID); //post childs categories    
                    foreach ($pcats as $cat) {
                        $result[] = $cat;
                    }
                    return $result;
                }
    
                /**
                 * When the post is saved, saves our custom data
                 */
                function save_post_options($post_id) {
                    // verify if this is an auto save routine.
                    // If it is our form has not been submitted, so we dont want to do anything
                    if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE)
                        return;
    
                    // verify this came from the our screen and with proper authorization,
                    // because save_post can be triggered at other times
                    if (!wp_verify_nonce(@$_POST[$_POST['post_type'] . '_noncename'], plugin_basename(__FILE__)))
                        return;
    
                    // Check permissions
                    if (!current_user_can('edit_post', $post_id))
                        return;
    
                    // OK, we're authenticated: we need to find and save the data
                    if ('post' == $_POST['post_type']) {
                        if (!current_user_can('edit_post', $post_id)) {
                            return;
                        } else {
                            //if (!empty($_POST['sticky_area']))
                            update_post_meta($post_id, 'post_featured_area', $_POST['featured_area']);
    						update_post_meta($post_id, 'post_sticky_area', serialize($_POST['sticky_area']));
                        }
                    }
                }
    
                function get_post_position($post_id, $cat_id) {
    
                    $pos_string = get_post_meta($post_id, 'post_sticky_area', true);
                    $positions = unserialize($pos_string);
    
                    if (!empty($positions[$cat_id]))
                        return $positions[$cat_id];
                    return ''; //default position
                }
    
    // fine post position
    
    Thread Starter sangkavr

    (@sangkavr)

    Have you tried to publish it and after you checked if you see image?

    Thread Starter sangkavr

    (@sangkavr)

    I don’t use facebook, so the app has been installed for the purpose.
    I’ve just tried to clear cache and nothing changed.
    All users reported us this issue.

    Thread Starter sangkavr

    (@sangkavr)

    Hi, thank for your wuick reply.
    I forgot to say that the issue is only in android app, maybe you’re in iOS?
    Screenshot

    Thread Starter sangkavr

    (@sangkavr)

    Absolutely not, I see that bar when I activated your plugin ??

    Thread Starter sangkavr

    (@sangkavr)

    I didn’t give any special permission to editor role, actually I removed to it some permissions (page editing).
    Anyway I solved hiding “wp-admin-bar-query-monitor” through css.

    Thread Starter sangkavr

    (@sangkavr)

    I just removed that plugin that isn’t listed in plugin page.

    Thread Starter sangkavr

    (@sangkavr)

    Hi again, thanks to your great suggestion it seems that if I enable WPCoreSys I get that issue.
    The bad news is that Wpcoresys seems to be WordPress core, any suggestion?

    —EDIT— It seems to be a malware infection.

    • This reply was modified 6 years, 7 months ago by sangkavr.
    Thread Starter sangkavr

    (@sangkavr)

    Absolutely I’ll install health check.
    Thanks.

Viewing 15 replies - 1 through 15 (of 73 total)