BB-Code-like mechanism by which strings enclosed in square brackets can serve as shorthand for longer and more complicated strings. These strings are processed by callback handlers, usually on page load, which replace the bracket enclosed string with the output from the callback handler.
2
votes
1answer
680 views
TED talks shortcode not working
I am trying to embed a Ted talk video using the shortcode:
[ted id=myid]
But it's not working. It shows the text instead of the video.
Is there any configuration I need to check to make it work?
2
votes
1answer
1k views
Remove wpautop from shortcode content / remove whitespace in buffering
I am using the Mailchimp plugin ( http://wordpress.org/extend/plugins/mailchimp/ )and it has a shortcode that uses output buffering to grab it's widget's code and spit it out in the content. however, ...
2
votes
2answers
141 views
What characters are allowed as a shortcode tag and how should they be sanitized?
I am working on a plugin where the user can define shortcode tags himself. What would you suggest to allow in there? My thought is only allow ascii characters.
So how do I sanitize? strip_tags and ...
2
votes
3answers
389 views
How do I add my own custom shortcodes?
I'm looking to reuse some small portions of html inside several pages/post but I don't know how to obtain this on WordPress.
It would be nice if I could have a helper in the editor to include them, ...
1
vote
0answers
58 views
NextGEN Gallery- using shortcode for different galleries on different pages [duplicate]
Possible Duplicate:
conditional shortcode not working
I have a salon website with a gallery page wherein the user must first select a stylist prior to viewing their individual gallery.
I ...
1
vote
1answer
613 views
extract shortcodes from string
i need a little help to with this issue:
I have a string wich contains shortcodes like [shortcode data="1" data2="2"]
How I can extract with regex? without wordpress system?
Thanks in advance.
1
vote
1answer
511 views
Custom shortcode in widget forced to top of widget
A custom shortcode i made is being forced to the top of the widget outside of the widget container. Any ideas why? This is my code...
function nktmediaplayer_func($atts) {
...
0
votes
0answers
26 views
Can't seem to get [shortcode]s to work
function register_shortcodes(){
add_shortcode( 'my_shortcode', 'my_shortcode' );
}
add_action( 'init', 'register_shortcodes');
function my_shortcode( $atts ) {
return "--my_shortcode--";
...
0
votes
1answer
46 views
Adding Image Count to Multigallery
Ok so I am using the [multigallery] function and it works fine, but one thing I want to add.
Here is the code that I am using for the multigallery in my functions.php file
function ...
0
votes
2answers
141 views
How to display some selected user meta data on a specific page with a shortcode?
I need to display on some specific pages some selected user meta data (not all), for some users.
On the Wordpress Codex page for the get_user_meta() function we have this example (user_id = 9):
...
0
votes
2answers
67 views
Using locate-template & shortcodes doesn't appear to work
For organisation, I'm trying to split up the functions.php file into separate files. In particular the functions for shortcodes in a separate file, with the shortcodes being defined in functions.php. ...
0
votes
1answer
97 views
Shortcode for tables which can include comma and linebreaks
Is it possible to make a shortcode for table which can include commas and linebreaks for its content? I've been trying to output something like this with shortcode:
But it seems difficult. I tried ...
0
votes
1answer
863 views
plugin shortcodes not working on custom theme- unsure how to fix
Live site.
I've got a custom theme that is giving me slight issues with shortcodes- they don't work. When I switched back to the default theme, the shortcodes worked fine. What do I need to look for ...
0
votes
1answer
147 views
Creating a WordPress shortcode
I'm coding my first WP shortcode and am having trouble turning my working PHP into a working shortcode. I have successfully created a basic shortcode that returns text in the spot I'd like so that ...
0
votes
1answer
540 views
the_excerpt and shortcodes
I'm using the_excerpt on my index page. I'm also using a dropcap shortcode at the beginning of each of my posts. On the index page the posts will not display the letter with the dropcap shortcode ...
0
votes
2answers
304 views
Inserting shortcode [stream /] into a Text widget
hi i'm trying to insert a short code into a Text widget but all its doing it showing the code and not processing it.
<?php echo do_shortcode(' [stream embed=false share=false width=500 height=560 ...
0
votes
1answer
533 views
Stream Video Player does not work with do_shortcode()?
I have downloaded a plugin called Stream Video Player, which has a shortcode. If I put the shortcode into the content editor, it works well and it displays the video. However, if, inside a template I ...
-1
votes
1answer
565 views
Calling function from within functions.php returns unwanted value
I am trying to customize the output of the [gallery] shortcode to include comment count by this plugin: Facebook Comments for WordPress plugin
I found a function by Zack Austin (shown below) that ...
