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.

learn more… | top users | synonyms (2)

1
vote
1answer
283 views

Raw output (preventing wpautop)

Using WordPress 3.5. I'm trying to put a <form> into a Page of a WP-based site. Unfortunately, WP is "helpfully" screwing up the formatting of the form by inserting <br> and <p> ...
0
votes
1answer
532 views

How to enqueue script based on post category?

I have scripts for various little tools I have made using some js and html. I want the js to load only on specific single posts in side a specific category. I have tried the following code and it does ...
-1
votes
1answer
391 views

Display HTML5 jQuery Audio Player On Front Page

I would like to display the plugin HTML5 jQuery Audio Player 'centered' on the front page of my site. The plugin comes with shortcodes for posts and pages but my front(home page) only works with the ...
0
votes
1answer
134 views

Parse a shortcode differently based on on what it's nested in

Suppose we have two different sets of nested shortcodes, like this: Apple version [wrapper snack="apple"] Today I had a [flavor] snack... [/wrapper] Desired output: My snack was quite HEALTHY ...
0
votes
2answers
482 views

Custom registration form in shortcode getting internal server error 500

I created a custom registration form which works fine when used as a custom page template. I needed it as a shortcode so I created a shortcode using the function below /* Custom shortcode */ function ...
0
votes
3answers
106 views

Need to return shortcode text instead of the output

Is there a way I can return the shortcode text instead of the output. My code function is hooked into 'the_content' and I know if my function contain shortcode it will automatically generate the ...
1
vote
1answer
159 views

Shortcode Function not working

I got this code to show my thumbnails images and videos on my blog page, but when i try to use to show the thumbs in another page, it doesnt works. Function to display images and videos thumbs ...
0
votes
1answer
129 views

Shortcode displaying at the top of the page [duplicate]

Possible Duplicate: The result of a shortcode appear BEFORE page content short code output too early I got this shortcode for display my blog posts on my page, but the EXCERPT and the ...
3
votes
1answer
311 views

Possible to create placeholder images in Wordpress editor that are clickable (should bring up uploader)?

Working on a project where I would like to have buttons within the actual visual editor area where the user can click on the placeholder image and it brings up the upload dialog. I've seen that ...
0
votes
2answers
886 views

Insert wp gallery shortcode into custom textarea

Is there a way to insert wp gallery shortcode into custom metabox textarea ? I would like to have something like this: New metabox in post/page with textarea and below textarea there are a button to ...
3
votes
1answer
598 views

How to display the names of users from a specific group with a shortcode?

I have in the database a table with the user_id and corresponding group_id values, so each row contain the ID of the user that is a member of a group and the related group ID. The question is: How to ...
0
votes
2answers
59 views

Shortcode of a function

I got this function and i want to make the contents divs of "foreach" as return. How can i do that? <?php $args = array( 'numberposts' => 6, ...
0
votes
2answers
419 views

How to process shortcodes in XML-RPC

Firstly, I know that XML-RPC is designed to send out the raw post data, but I need it to expand shortcodes out. I don't use it for posting so it won't be an issue there, but there are services that ...
0
votes
1answer
569 views

Convert usernames listed by the Groups plugin shortcode to displayed names?

I have created a group with the Groups plugin and I want to display the members list of that group. I put the shortcode [groups_group_info group="Group Name Here" show="users"] in a page, but it ...
2
votes
1answer
75 views

getting values from a shortcode with an include

I have a checked a few links but nothing seems to for me in getting the attribute value of a shortcode so that I can use it in a condition. function bf_shortcode_slideshow($atts) { ...
-2
votes
3answers
56 views

Shortcode return is printing a 1 afterward

function build_total_search_method( $atts ) { $shorcode_php_function = include( dirname(__FILE__) . "/includes/total_search.php" ); return $shorcode_php_function; } add_shortcode( ...
1
vote
2answers
720 views

Including javascript for a shortcode

I'm creating a plugin that allows a user to use a shortcode. This shortcode depends on a bunch of javascript that needs to be present once the shortcode loads. I'm having issues trying to decide when ...
2
votes
1answer
404 views

Gallery Settings Change available Columns

Is there a filter hook which changes the number of available columns in gallery settings screen. I'm talking about the : <label class="setting"> <span><?php _e('Columns'); ...
2
votes
1answer
335 views

Audio tags around Mp3 URL in content

I have an audio player than uses the following syntax to display its player: [audio src="http://somedomain.com/wp-content/uploads/2013/01/songtitle.mp3"] The thing is, I'm pretty sure I can show the ...
0
votes
2answers
2k 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
1answer
101 views

Include tags in the body of a post

it feel like this should be easy. I want to add the post tags inside the body of some posts. I was thinking that creating a shortcode may be the answer. I came across these 2 pieces of code: To ...
-1
votes
1answer
31 views

Developing a wordpress.com shortcode [closed]

I am looking to develop a shortcode that all wordpress.com users can use. Should I proceed with developing a plugin? I know users on wordpress.org can use the plugin but I am confused on how to make ...
-1
votes
3answers
1k views

How to use 'Event Manager Shortcodes' plugin via the php code? [closed]

I am using Event Manager plugin. I want to use many of the shortcodes via php code. e.g [events_calendar]
-1
votes
2answers
514 views

Wordpress Shortcode loads at the top

I tried all solutions of the topics here but I haven't been able to find a solution. I made a Plugin for a Shortcode. My problem is that the plugin code get always loaded above the content. I already ...
1
vote
2answers
4k views

How to get gallery id inserted to a post?

Is it possible to get a specific Gallery ID inserted to a post in wordpress 3.5? I want to load gallery from post using Ajax. I use shortcode [gallery] to do it. But when I use it this way: echo ...
0
votes
2answers
557 views

Can I the caption shortcode to set caption to a data attribute, and with the image's alignment intact?

I want to output an image caption in this kind of format: <img class="alignleft size-medium wp-image-316" alt="Image Title" data-caption="Here lies the image caption" ...
1
vote
1answer
301 views

display shortcodes outside of the_content

Is there a way to display shortcode content outside of the_content? I am building a custom theme who's theme options includes two text boxes that can be displayed on the front page. I want to be ...
-2
votes
1answer
172 views

Shortcode content is empty [closed]

I've got this shortcode in my functions.php: function amaranthe_buy_tickets( $atts, $content = null ) { extract(shortcode_atts(array( 'link' => '#', 'target' => '', ...
0
votes
1answer
1k views

Clearfix Shortcode

A client of mine has been having trouble placing images on a page of her WordPress site. The page is to have an image (left aligned) with some text on the right, then another image with some text on ...
-1
votes
2answers
346 views

jQuery not working for tabs shortcode [closed]

See reference URL - http://prothemeus.com/demo/fact/shortcodes/ If you take a look at the tabs at the bottom of this page, whenever I click on each tab it doesn't show the content underneath. I've ...
0
votes
2answers
227 views

Custom youtube shortcode that uses $content

I wanna make a simple shortcode that returns the youtube link in a specified size and use the content. Something like: [yt]http://youtu.be/Nl29v5pfxTw[/yt] I have this code, but I want to simplify ...
0
votes
3answers
919 views

Theme doesn't support shortcodes

How can I add shortcode functionality to a WordPress theme that doesn't support shortcodes?
0
votes
1answer
309 views

Wrap text around shortcode

I use a shortcode handler in my plugin. The shortcode can have different (optional) parameters. And it should be possible to use for example 2 shortcodes on a static WordPress page with text before, ...
0
votes
3answers
77 views

How and when to include shortcode source files

I am Writing a plugin, with many shortcodes. Now I do not want to include all shortcodes source files to every page. So my questions are: Where should I include the source? Is it back-end or ...
0
votes
1answer
2k views

Wordpress display image link in shortcode

I have a shortcode that display an image when you use the image url inside it. function image_code($atts, $content = null) { return '<img src="'.$content.'" class="user-imgs"/>'; } ...
6
votes
1answer
350 views

Optimize shortcode callbacks

I created a plugin to add some shortcodes in my WordPress site. But I'm a PHP newbie, so I believe it may have some errors or ways to optimize it. It's working fine, and apparently there are no ...
0
votes
1answer
389 views

Use full size images in a specific gallery

Thumbnails are displaying as 100px however the full size is 130px which is what I want. I want this only in one specific gallery. Also would like to link each gallery thumbnail image to an external ...
0
votes
3answers
320 views

How can I return shortcode output to the top of the content?

I have a shortcode called update which is used as follows [update title='' date=''] this is some update, etc. etc. 2 paragraphs or more [/update] This outputs some html that wrap the title, date ...
0
votes
1answer
130 views

Displaying shortcode content inside custom field without images

I need to be able to display different shortcodes inside custom fields. I have found a method that almost works perfect, but since that uses get_content, it also shows the main featured image of ...
0
votes
2answers
255 views

How can I display wp_link_pages before a shortcode, if it is used, or display after content?

I have the following shortcode in my content [src]<a href="#">Some Link</a>, <a href="#">Some Other Link</a>[/src] My post structure looks like this: <?php echo ...
0
votes
1answer
624 views

Echo do shortcode with custom field not working

I'm using WP YouTube Lyte to show YouTube videos. I'm combining it with Advanced Custom Fields so that the user can just add the YouTube id to show the video. I'm using the WP YouTube Lyte short code ...
1
vote
2answers
2k views

How to make shortcode to hide selection of text from post or page?

is there any shortcode or a plugin that will add new quicktag, like this example: [hidemytext]some hidden text[/hidemytext] and any text inside those tag is hidden from the post or from the page. ...
0
votes
3answers
434 views

passing markup thought a shortcode attribute

Happy holidays everyone. Hope someone can help me in thinking about a problem I've run into. I have a plugin Im building that allows the user to pull address data from the maps API - ie it ...
0
votes
1answer
49 views

Escaping a shortcode so it displays as-is [duplicate]

Possible Duplicate: Show shortcode without executing it I've created a plugin that uses a custom shortcode to allow the user to easily split their post into columns. The problem is, when ...
3
votes
2answers
2k views

Shortcode to insert <!--nextpage-->

Since wordpress does not have a menu icon (aka "user friendly) way to add the command to a post or page, I'm trying to create a shortcode to do it. However, as logic would have it, its not that ...
0
votes
1answer
115 views

About redundant code when I use shortcode to output the HTML from a variable

I use shortcode to output the following html in a variable, but there are too many redundant code such as br and p tags, how to remove them? Thanks! HTML MAKEUP $return_html.='<div ...
1
vote
1answer
576 views

Shortcode content does not show in feed discription/excerpt

I have a shortcode for my content. This shortcode organizes a couple of things in my posts on the frontend. However, when I look at my feed, the content in the entirely leaves out any content from ...
3
votes
2answers
2k views

Customizing gallery shortcode in 3.5

I'm trying to customize the gallery shortcode using the new gallery system in 3.5 and I'm having a bit of trouble and can't figure out where I'm going wrong. This is what I've got at the moment (in ...
0
votes
2answers
852 views

add short code not working

I am new to wordpress, I am creating a plugin and for the short code, I am using the short code api. But when I insert this shortcode in my page, it displayes as it is, it does not display the ...
0
votes
1answer
908 views

Excerpt Length & List Category Posts Plugin

I'm trying to filter out the excerpt by character length for a plugin called "List Category Posts". I've been trying to get the excerpts working for the past week, but nothing is doing the trick. The ...