Tom Morton
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Echoing HTML – is there a better way to do this?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; }Forum: Plugins
In reply to: [WPSocialite] Small Social IconsJeff,
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).
Forum: Plugins
In reply to: [WPSocialite] Sharing buttons for store pages in coupon siteI 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.
Forum: Reviews
In reply to: [WPSocialite] Performance applied to social sharing!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!
Forum: Plugins
In reply to: [WPSocialite] Small Social IconsJeff,
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.
Forum: Plugins
In reply to: [WPSocialite] Pinterest Not Working ProperlyOdd, I’ll take a look when I’m back at my desk and see why pinterest is acting up.
Forum: Plugins
In reply to: [WPSocialite] W3C ValidationThe latest version should resolve any validation concerns. Please let me know if there are still errors.
Forum: Plugins
In reply to: [WPSocialite] Conflict With W3 Total Cache Plugin.I’m marking this resolved. Feel free to open it back if you are still experiencing issues.
Forum: Plugins
In reply to: [WPSocialite] performance issuePompos,
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.
Forum: Plugins
In reply to: [WPSocialite] Add new social media buttonsI haven’t upgraded the social network settings just yet, but I haven’t forgotten!
Forum: Plugins
In reply to: [WPSocialite] Hide socialite on specific postsFirst,
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.
Forum: Plugins
In reply to: [WPSocialite] [Plugin: WPSocialite] Logs filling with PHP warningsHello 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!
Forum: Plugins
In reply to: [WPSocialite] [Plugin: WPSocialite] Logs filling with PHP warningsWill fix asap in next release. Thank you!
Forum: Plugins
In reply to: [WPSocialite] Social buttons not loadingGlad to hear it!
Forum: Plugins
In reply to: [WPSocialite] Social buttons not loadingJust 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.