• Resolved pank6119

    (@pank6119)


    Being New To Website world I didn’t knew about Seo Focus keyword and It’s Importance I Have Randomly Created Many Post on my website without Any Focus keyword Now It’s getting difficult for me to edit each post for just adding focus keyword to Word. I can’t See focus keyword field in quick edit undertab for posts So I m trying to add that field of focus keyword on my wordpress dashboard For which I came Up with This code below ? Which is still not working for me.

    pls help me debugging or understanding this code to get my desired result i just need a field of focus keyword in quick edit undertab in my post on my dashboard I tried to find plugin for this but couldn’t find any The nearest plugin I found is custom Bulk/Quick Edit which adds other fields in quick edit like excerpt field but can’t add yoost focus keyword field.

    add_action( 'quick_edit_custom_box', 'my_quick_edit_custom_box', 10, 2 );
    function my_quick_edit_custom_box( $column_name, $post_type ) {
        if ( 'yoast_focus_keyword' === $column_name ) {
            ?>
            <fieldset class="inline-edit-col-right inline-edit-yoast-focus-keyword">
                <div class="inline-edit-col">
                    <label>
                        <span class="title"><?php esc_html_e( 'Yoast Focus Keyword', 'textdomain' ); ?></span>
                        <span class="input-text-wrap">
                            <?php $keyphrase = get_post_meta( get_the_ID(), '_yoast_wpseo_focuskw', true ); ?>
                            <input type="text" name="yoast_focus_keyword" value="<?php echo esc_attr( $keyphrase ); ?>">
                        </span>
                    </label>
                </div>
            </fieldset>
            <?php
        }
    }
    

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @pank6119

    Thanks for using the Yoast SEO plugin. By default, Yoast SEO doesn’t have a feature to edit keyphrases in bulk. And it’s in our product roadmap to introduce CSV import functionality soon.

    Sadly, I can’t review your custom code on how to add the focus keyphrase field to the quick edit screen in WordPress.

    Thread Starter pank6119

    (@pank6119)

    I m just Looking for Quick edit of focus keyword quickly bcoz editing them one by one is quite hectic i m trying to quickly edit tags category and focus keyword at one place that would be if under quick edit

    Hey @pank6119,

    Thank you for your reply.

    I can understand that you want to see it there, but we don’t have an option and/or can’t support or suggest code to do so.

    Please know that just setting a focus keyphrase and not optimizing your content for it does not have much impact. Our SEO analysis runs when you edit your content and will adapt as you write/edit. Just entering a focus keyphrase and not optimizing your content won’t affect anything. I’d recommend going into your content, choosing your focus keyphrase, and then optimizing your content – see: https://yoast.com/focus-keyword/. You can start with your most important pages and posts first, and optimize less important content later.

    Plugin Support Maybellyne

    (@maybellyne)

    This thread was marked resolved due to a lack of activity, but you’re always welcome to re-open the topic. Please read this post before opening a new request.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to add yoast focus keyword field in Quick Edit undertab of All post’ is closed to new replies.