Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Just figured it out. My custom post type was named “products” and I’m guessing this conflicts with the built-in ecommerce stuff in this plugin. Registering the post under a different name allowed it to show up in the dropdown.

    Same issue here. I have a custom post type, created via functions.php, but its not showing up in the dropdown for Select Post type and says CUSTOMPOST LIST IS EMPTY.

    Not sure if this is related, but I see a red message at the top saying “Your Required Settings Configuration Please Select Security and Performance tab”, but all looks OK when I check the Security and Performance tab, i.e. the server meets all of the minimum requirements.

    For a list of variables for Yoast SEO, click the Help drop-down at the very top right of your screen in wp-admin, when you’re in the yoast plugin area.

    When you drop down the help menu, you’ll see the tabs for basic and advanced variables. I’m new to this awesome plugin, but could be that it was relocated in a new version of the plugin or new version of WordPress.

    I sent the author Jon an email last week about it, and he said hes real close to releasing the next version which has pinterest.

    To hold you over, here are the code changes required to get an “inline” Pin It button into the Socialize plugin.

    In plugins/socialize/socialize-services.php

    Around line 437, add this:

    // Create Pinterest button
        function createSocializePinterest($service = "", $service_options = array(), $socialize_settings = null){
        // thumbnail url
        $thumb = wp_get_attachment_image_src( get_post_thumbnail_id(get_the_ID()), 'thumbnail' );
        $thumb_url = $thumb['0'];
    
            $buttonCode = '<a href="https://pinterest.com/pin/create/button/?url='.get_permalink().'&media='. $thumb_url . '" class="pin-it-button" count-layout="horizontal">Pin It</a><script type="text/javascript" src="https://assets.pinterest.com/js/pinit.js"></script>';
            return $buttonCode;
        }

    plugins/socialize/frontend/socialize-frontend.php

    Around line 68, add this:

    case 26:
                    return $socializeWPservices->createSocializePinterest();
                    break;

    Around Line 137, add 26 to the array like so:

    $inline_buttons_array = array(1,2,3,4,5,6,7,8,9,10,22,24,26);

    plugins/socialize/admin/socialize-admin.php

    Around line 807, add 26 to the array like so:

    $inline_buttons_array = array(1,2,3,4,5,6,7,8,9,10,22,24,26);

    Around line 842, add this:

    $service_names_array[26] = "Pinterest";

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