Yes, [ssba] and [ssba_hide]. The latter you place in the content of your post to stop WordPress from rendering the shortcodes there. I don’t know of a way to automate this.
This seems to work if you want to add a [ssba_hide] tag to every post (add to functions.php):
/**
*
* Intercept Simple Share Buttons Adder output.
*
*/
function my_remove_ssba_from_content($content) {
global $post;
if ($post !== '') {
$post->post_content .= '[ssba_hide]';
}
return $content;
}
if (shortcode_exists('ssba')) {
add_filter( 'the_content', 'my_remove_ssba_from_content', 9);
add_filter( 'the_excerpt', 'my_remove_ssba_from_content', 9);
}
(Note that I am not sure if I should be editing $post->post_content instead of $content, but the former is what the plugin looks at when determining the presence of the [ssba_hide] tag.)
That seems to work, thanks!!
It would be great to have the hiding option in the plugin interface, something like:
Placement:
-After
-Before
-Both
-Use shortcode.
Cheers!
Hi,
I have installed this plugin: Simple Share Buttons Adder (http://wordpress.org/plugins/simple-share-buttons-adder/screenshots/), but I want to hide the buttons in my portfolio. In these four url:
http://www.antoniomigueldelgado.com/portfolio-item/futura-mama/
http://www.antoniomigueldelgado.com/portfolio-item/ninos/
http://www.antoniomigueldelgado.com/portfolio-item/estudio/
http://www.antoniomigueldelgado.com/portfolio-item/hdr-2/
I have installed this plugin go to the buttons on my blog, but I do not want to show in my portfolio. No how to disable entries in my portfolio.
I tried inserting the code [ssba_hide] but not how to do it, and insert it as content and nothing happens.
I need help for someone to tell me how I do it step by step.
Thank you very much and soon I hope your help.
Back to aderojas’ original question up top… Can I use [ssba] to display buttons in a different location than just above or below content? I am trying to use this shortcode to display the buttons below the secondary widget area of the Twenty Twelve theme or possibly in the footer area, but inserting [ssba] into these alternate locations only results in “[ssba]” being displayed, not the actual buttons. I know I am doing something wrong…
I did post this as a separate question to begin its own thread, in which I explain my exact scenario more precisely, here: https://wordpress.org/support/topic/how-to-add-ssa-buttons-below-widgets-on-twenty-twelve-front-page?replies=1
Thanks for any tips or suggestions…
He @susantau, are you just pasting
[ssba]
in your template files? That only works when you paste it inside the page/post content through the dashboard. Here you have to use the WordPress’ PHP function that will take care of making that shortcode display what you want:
<?php echo do_shortcode("[ssba]"); ?>
You can read about it here: http://codex.wordpress.org/Function_Reference/do_shortcode
oh YES, that is exactly what I was doing wrong! THANK YOU for the exact correct code as well as link to codex page for me to deepen my understanding! 🙂
No problem, I’ve been in your shoes before and I’m glad to now be able to help someone else 😉
Cheers!