How to add yoast focus keyword field in Quick Edit undertab of All post
-
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]
- The topic ‘How to add yoast focus keyword field in Quick Edit undertab of All post’ is closed to new replies.