Forum Replies Created

Viewing 15 replies - 151 through 165 (of 404 total)
  • This is more of a PHP question.

    You could do something like this:

    function your_custom_prefix_screenshots( $atts, $content = null ) {
    //you should always use a custom prefix for your functions, just in case another function called "screenshots" exists.
        global $post;
        $screen1 = get_post_meta($post->ID, 'screen1', true);
        $screen2 = get_post_meta($post->ID, 'screen2', true);
        $screen3 = get_post_meta($post->ID, 'screen3', true);
        $screen4 = get_post_meta($post->ID, 'screen4', true);
    
        $output = '<div class="galleryWrapper">';
            $output .= '<div class="galleryImage first">';
                $output .= '<a href="'.$screen1.'"><img src="'.$screen1.'"></a>';
            $output .= '</div>';
    
            $output .= '<div class="galleryImage first">';
                $output .= '<a href="'.$screen2.'"><img src="'.$screen2.'"></a>';
            $output .= '</div>';
    
            $output .= '<div class="galleryImage first">';
                $output .= '<a href="'.$screen3.'"><img src="'.$screen3.'"></a>';
            $output .= '</div>';
    
            $output .= '<div class="galleryImage first">';
                $output .= '<a href="'.$screen4.'"><img src="'.$screen4.'"></a>';
            $output .= '</div>';
        $output .= '</div>'; //end galleryWrapper
    
        echo $output;
    }
    Plugin Author Tom Morton

    (@tm3909)

    Jeff,

    Just to clarify, are you testing this on an IOS device? Maybe you should remove the media query in the CSS I gave you and see if that fixes your issue.

    .wpsocialite.small > li {
            margin: 0;
            display: inline-block;
            float: none;
            width: 30%;
        }

    If that doesn’t work, turn on the icon set you would like to see and reply with a link as well as the device you are targeting (iPhone 5, Kindle, etc).

    Plugin Author Tom Morton

    (@tm3909)

    I just added a shortcode option to the latest version of the plugin (1.5). I think that may be you are looking for. I’m not sure how you are adding the current sharing links, but you can implement the shortcode by placing [wpsocialite] in the content of the post.

    Alternatively, you can add the template tag to your theme and have it appear within the loop anywhere you please:

    <?php wpsocialite_markup('large'); ?>

    Hope this helps, let me know if that answers your question.

    Plugin Author Tom Morton

    (@tm3909)

    jmzolezzi,

    Appreciate your feedback. I took your advice and added a shortcode option for WPSocialite:

    [wpsocialite size="large"]

    You should see an update for the plugin to 1.5 come through shortly. Hope this helps and thanks for using the plugin!

    Plugin Author Tom Morton

    (@tm3909)

    Jeff,

    Not currently at my desk so I cannot troubleshoot just yet, but would it be possible to add custom CSS to your theme that would adjust the social icons as the screen gets smaller?

    For example:

    @media screen and (min-width: 400px) {
        .wpsocialite.small > li {
            margin: 0;
            display: inline-block;
            float: none;
            width: 30%;
        }
    }

    Let me know if this accomplishes what you’re looking to do.

    Plugin Author Tom Morton

    (@tm3909)

    Odd, I’ll take a look when I’m back at my desk and see why pinterest is acting up.

    Plugin Author Tom Morton

    (@tm3909)

    The latest version should resolve any validation concerns. Please let me know if there are still errors.

    Plugin Author Tom Morton

    (@tm3909)

    I’m marking this resolved. Feel free to open it back if you are still experiencing issues.

    Plugin Author Tom Morton

    (@tm3909)

    Pompos,

    Sorry to get back to you late.

    The latest version has been upgraded to include language options. Your wordpress language settings should override WPSocialites and translate it as needed.

    Plugin Author Tom Morton

    (@tm3909)

    I haven’t upgraded the social network settings just yet, but I haven’t forgotten!

    Plugin Author Tom Morton

    (@tm3909)

    First,

    Be sure to upgrade to the latest version. The new manual markup is <?php wpsocialite_markup(); ?>

    Second,

    Let me think about how to best implement a “hiding” function. For now, you could simply use something like this:

    <?php
    		$exclude_ids = array('1','60','62');
    		if(!in_array($post->ID, $exclude_ids)){
    			wpsocialite_markup();
    		}
    		?>

    This looks at the ID’s you have specified in $exclude_ids, then says “If the current $post->ID is not one of these, then display the wpsocialite_markup function.”

    Let me know if that helps.

    Plugin Author Tom Morton

    (@tm3909)

    Hello All,

    Just pushed up the latest version (1.4.5), you should see it appear in your WordPress upgrade panels shortly.

    It turns out if you deselect all of the Custom Post Type display options, it leaves us with an empty field. Another contributor added this function and I didn’t catch the issue. If this was left blank, in_array starts to complain.

    Its been fixed, be sure to follow up if you see any other issues.

    Thanks for all feedback and for using WPSocialite!

    Plugin Author Tom Morton

    (@tm3909)

    Will fix asap in next release. Thank you!

    Plugin Author Tom Morton

    (@tm3909)

    Glad to hear it!

    Plugin Author Tom Morton

    (@tm3909)

    Just logged in and checked all of the settings. Everything seems in order, although I did see that you’ve got quite a few plugins currently active. I would recommend you deactivate all but WPSocialite plugin and start activating them again one by one, seeing if one of them breaks WPSocialite (I would have done this, but I didn’t want to start flipping switches on your site).

    Especially because you’ve got W3TotalCache minifying all of the javascript, I’m wondering if there are scripts that are causing a conflict when merged together.

Viewing 15 replies - 151 through 165 (of 404 total)