• Resolved oneswagg

    (@oneswagg)


    Whenever I try to make a NEW post or EDIT a post,
    I need to use Custom Fields as part of the post, as it’s an entertainment blog.

    However, when I scroll down to “Custom Fields” section,
    – I click on the dropdown list as usual
    – I can’t find my OWN custom field keys because the drop down list is filled with these entries…

    nxs_snap_sh_FB085749
    nxs_snap_sh_TW088576
    nxs_snap_sh_TR0_7784
    nxs_snap_sh_FB085749
    nxs_snap_sh_TW088576
    nxs_snap_sh_TR0_7784
    nxs_snap_sh_FB085749
    nxs_snap_sh_TW088576
    nxs_snap_sh_TR0_7784
    nxs_snap_sh_FB085749
    nxs_snap_sh_TW088576
    nxs_snap_sh_TR0_7784
    nxs_snap_sh_FB085749
    nxs_snap_sh_TW088576
    nxs_snap_sh_TR0_7784
    nxs_snap_sh_FB085749
    nxs_snap_sh_TW088576
    nxs_snap_sh_TR0_7784
    nxs_snap_sh_FB085749
    nxs_snap_sh_TW088576
    nxs_snap_sh_TR0_7784
    nxs_snap_sh_FB085749
    nxs_snap_sh_TW088576
    nxs_snap_sh_TR0_7784
    nxs_snap_sh_FB085749
    nxs_snap_sh_TW088576
    nxs_snap_sh_TR0_7784

    Let’s just say, the entire drop down list is filled with those.

    It doesn’t matter if the post is a draft, published or currently being edited. They are always there.

    Whether the fields are the same or new fields, I don’t know. I didn’t really check, because there’s so many.

    So, I’ve spent days trawling google to find a piece of code to hide certain words from “custom field drop down”

    This is the best code i found…

    /* hide custom field “suggestions” from dropdown list */
    add_filter( 'postmeta_form_limit', 'wpse_73543_hide_meta_start' );
    function wpse_73543_hide_meta_start( $num ) { add_filter( 'query', 'wpse_73543_hide_meta_filter' );return $num;}
    function wpse_73543_hide_meta_filter( $query ){
    // Protect further queries.
        remove_filter( current_filter(), __FUNCTION__ );
        $forbidden = array ( 'enclosure', 'sharing_disabled', 'voted_IP', 'nxs_snap_sh_TW088576 ', 'nxs_snap_sh_TR0_7784', 'nxs_snap_sh_TW088576 ' ,'snap_MYURL','snapTW','snapFB','snapTR','snapEdIT','bwps_enable_ssl');
        $where     = "WHERE meta_key NOT IN('" . join( "', '", $forbidden ) . "') ";
        $find      = "GROUP BY";
        $query     = str_replace( $find, "$where\n$find", $query );
        return $query;
    }

    It DOES NOT WORK. The values are still there, and its driving me nuts. What causes this ?

    //
    Basically, I only want to hide any dropdown values that contain this “nxs_snap_sh_” , that’s all

    https://wordpress.org/plugins/social-networks-auto-poster-facebook-twitter-g/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter oneswagg

    (@oneswagg)

    Any help, please ?

    Thread Starter oneswagg

    (@oneswagg)

    What about a screenshot below:
    http://i.imgur.com/UkIUvrz.png

    Hopefully, that could help in troubleshooting this issue.

    I still can’t make posts on the site properly because of this.

    @nextscripts, I don’t know if you have seen this thread or not, but if this goes unresolved , I may have to find another plugin that doesn’t stop me from making posts.

    Thread Starter oneswagg

    (@oneswagg)

    Still expecting a response, don’t want to uninstall this great plugin, just because of this issue.

    Plugin Author NextScripts

    (@nextscripts)

    This will be fixed in the next release.

    Plugin Author NextScripts

    (@nextscripts)

    Fixed in the 3.3.2

    Novelty

    (@candied)

    I don’t know if it is just me because I am still seeing this on 3.3.3

    Plugin Author NextScripts

    (@nextscripts)

    Plugin will not create new nxs_snap_sh_ records after 3.3.2 update, but you still be seeing the records that you currently have in your DB. Once all scheduled posts become posted, all those records will be gone.

    If you like you can run this query on your database:

    DELETE FROMwp_postmetaWHEREmeta_keyLIKE 'nxs_snap_sh%'

    That will remove all existing records, but it will also screw all your currently scheduled autoposts.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘So many strange entries in Custom Fields drop down & it affects me posting …’ is closed to new replies.