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
26 views
Shotcode error on functions
Hello i have this shortcode that is generating a error.
Can someone help?
add_shortcode('do-action', 'do_action_shortcode');
function do_action_shortcode($atts, $content = '') {
ob_start();
...
1
vote
1answer
17 views
Plugin Handle URL With Custom Theme
I need to develop a plugin in which a special page needs to be created. This page will have a completely separate design from the rest of the website, and will be located at a specific URL.
I realize ...
0
votes
2answers
88 views
wp-query Shortcode in Gravity Forms Notification
I have the following code that runs two wp-query loops upon form submission to display specific posts depending on the users choices in the form (The form fields are radio buttons with values that ...
5
votes
1answer
2k views
Check if post/page has gallery?
I'd like to run some code only if a gallery (inserted with the [gallery] shortcode) has been inserted into a post/page. I did the following:
gallery_shortcode($post->ID) ?
$gallery = 1 : ...
0
votes
2answers
30 views
Shortcode / plugin with custom (flexible) output
Following scenario: I'm building a theme framework which I want to reuse in various themes of mine. In this framework there is a collection of many shortcodes. For exemplary illustration of my ...
0
votes
0answers
22 views
Custom field for default gallery
How I can add custom field in default WordPress gallery? in visual editor and in shortcode.
1
vote
1answer
397 views
get_the_content(“more…”) returns full text
I'm creating shortcode [latest_post] and want to show post date, title and short content. (content has "more" separator). Here is code:
function shortcode_latest_post() {
global $post, $more;
...
0
votes
1answer
23 views
What makes a placeholder resizable in Tinymce?
It's not that hard to make a plugin to TinyMCE, similar to what the Wordpress gallery is doing in WP 3.5. Unfortunately, these custom placeholders are always non-resizable, although they show the ...
1
vote
1answer
220 views
Caption shortcodes not including caption as attribute
I recently installed the bonpress theme and am having trouble with the captions showing correctly. The more I try to understand how captions are supposed to work in Wordpress, the more I suspect ...
1
vote
1answer
24 views
Allow users of my plugin to define their own shortcode rather than use mine?
I'm creating my first plugin. So far everything is great, but my shortcode is something like this [BIMS] and that acronym might not be easy to remember, or appeal to everyone. I'd like to include an ...
1
vote
3answers
42 views
Nested shortcodes
I'm using 2 plugins in my wordpress blog - WP-Members and Dropbox Folder Share. I want to do something like this:
[dropbox-foldershare-hyno link="[wp-members field="some_link"]" ver_como='lista']
...
2
votes
1answer
1k 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
32 views
How to handle shortcodes through plugin
I learned that I can only put in the code for handling my shortcode through the theme's functions.php
But I was thinking of making it a plugin rather than a theme. How can I achieve that?
0
votes
1answer
113 views
Wpautop stops working after get_the_excerpt
function pre_process_shortcode($content){
global $shortcode_tags, $shortcodes;
// Backup current registered shortcodes and clear them all out
...
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
0answers
12 views
<?php wp_register(); ?> Display logged in user as “Site Admin” apposed to Logged in user
I'm just working on a little hobby word-press site I have;
<?php wp_loginout(''); ?>
<?php wp_register( '',''); ?>
In the top rite corner of my site, <?php wp_loginout(''); ?> ...
1
vote
1answer
182 views
Google Map Shortcode for Custom Taxonomy/Post Types
Calling all WP Stack Exchangers!
I am currently using Alain Gonzales' Google Map Shortcode plug-in on a site I'm developing, and it's worked just fine:
Google Map Shortcode plug-in on wordpress.org
...
0
votes
1answer
591 views
Adding Shortcode to Text Widget
At the moment, I'm running WordPress v3.2.2 (soon to upgrade to v3.4.2), and am trying to insert shortcode to insert Issuu into a text widget on our sidebar. The WordPress plugin I installed and am ...
0
votes
2answers
61 views
Shortcode adding p and br tags
I apologize as I realize this has been asked before and I believe the issue is with wpautop function adding closing p or br tags but every solution I've found has not worked so I'm at a loss for ...
1
vote
1answer
71 views
Allow shortcode in the author bio textarea
Is it possible to make shortcodes available in the Author bio textarea?
1
vote
1answer
20 views
What does extract( shortcode_atts( array( do?
The codex says 'Combines user shortcode attributes with known attributes and fills in defaults when needed. The result will contain every key from the known attributes, merged with values from ...
0
votes
2answers
46 views
How should I approach changing the template & $query as part of a shortcode's execution?
I am working on a project where I need to be able to change the template being used if a given shortcode is used. To complicate things more, the plugin must also be able to rewrite $query if this same ...
0
votes
1answer
129 views
page url in shortcode
I have a problem.
I'm using a custom shortcode to try to get the url. If the shortcode is inside a post then it gets the post url. When I open the post on a category list, this post shortcode works ...
0
votes
1answer
38 views
Custom wysiwyg editor doesn't execute shortcodes?
I encounter this weird problem.. I'm trying to create a simple & easy website for a client. He wants to embed video's into the page.
I use different customfields assigned to specific elements in ...
0
votes
0answers
23 views
Run function from parent on child site
I'm running a Multisite wordpress installation and have a couple of child sites.
Im trying to run a script from the main page on one of the child sites. It can be a shortcode [pro_display_zone ...
0
votes
1answer
109 views
Don't show images inserted into content
I'm using a lightbox plugin to display my post images with [gallery], it works
but those images show up in the content area too.
So there are thumbnails and full size of same image.
How can i hide ...
0
votes
1answer
107 views
Display MP3 as media using an URL from a custom field
I created custom field and placed this inside the loop:
<?php echo get_post_meta($post->ID, 'ses', true); ?>
But now the link is all text. I would like it to be like my theme does when I ...
0
votes
0answers
38 views
Creating a costing calculator plugin. How can the user create the calculations without coding?
I am relatively new to php & wordpress development. I am trying to create a plugin that allows the user to create an unlimited number of costing calculators. Users will be able to add fields ...
0
votes
0answers
27 views
show shortcodes in editor
Is there any way in which i can show custom shortcodes inside the editor panel, I have a bunch that I've created and thought it would be a good idea?
Not found anything online other than tutorials on ...
0
votes
1answer
20 views
Prevent Menu Shortcode From Formatting
I'm trying to insert shortcodes into menu links (as I need to display a latest post link). I've figured out how to get the do_shortcode part done.
However, when I insert a shortcode as the menu link ...
0
votes
1answer
32 views
Custom Fields - Boolean Display of True/False to Yes/No
I am importing fields from a Real Estate site.
The Import of one Custom Field looks like this...
Field Name after Import ---> assistedLiving Field Value ---> false
to output the display in ...
1
vote
2answers
42 views
How to use/enable Pagination?
I'm creating a shortcode to display the list of users with a particular profile in WordPress.
But I can not enable or display the pagination. I have 25 users on my site and would like to display 5 ...
0
votes
3answers
128 views
Execute shortcode within shortcode
I am using this plugin
http://wordpress.org/extend/plugins/worldcurrency/
Shortcode syntax:
[worldcurrency cur="EUR" value="25"]
However, i am using Advanced custom fields and the shortcode for ...
6
votes
2answers
7k views
How to manually fix the WordPress gallery code using PHP in functions.php?
It's been talked many times that Wordpress outputs some really bad code for the built-in gallery function.
This is the core code responsible for the gallery output (in /wp-includes/media.php):
...
0
votes
2answers
393 views
WPTouch - how to remove shortcodes or make shortcodes function
So as the title states - using WPTouch Mobile plugin (NOT Pro) I either want to make the shortcodes work as they should or remove them altoghether.
Currently they render on the page as [shortcode] ...
0
votes
1answer
37 views
How to wrap a text with shortcode into php file?
I want to wrap a text with shortcode into the single.php file.
The shortcode is: [box type="note" align="aligncenter" ][/box] and
the code is:
Διοργανωτής διαγωνισμού: <?php ...
2
votes
1answer
33 views
shortcode for logo image
I have the following code for showing images using the shortcode image but the shortcode is [image name=logo] to load an image from /uploads/ directory called logo.png; changing the name I can load ...
0
votes
2answers
1k views
Using the title of the post in a shortcode
Hi I'm trying to use this plugin: http://wordpress.org/extend/plugins/wordpress-simple-website-screenshot/
I am supposed to use the shortcode: [screenshot url="www.example.com"]
Because I am ...
0
votes
2answers
194 views
shortcode using multiple WP_Query's with multiple category names not fully functional
we're working on a bilingual site,
Larry A. Downs
all the posts are categorized into two categories, english or spanish, along with other categories. so every post has multiple categories,
i've ...
0
votes
1answer
119 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 ...
2
votes
1answer
129 views
How do I preview the result of a shortcode in the TinyMCE editor?
I have created a shortcode via the Shortcode API that does something like this:
[accordion_item numero="01" primeiro="true"]Item 01[/accordion_item]
[accordion_conteudo]
Lorem ipsum dolor sit amet, ...
0
votes
0answers
40 views
Shortcodes not working in just posts [closed]
I am having issues with my shortcodes not working in posts but working in pages.
Here is a page with shortcodes working:
http://174.120.222.98/~shutter1/amos-southend/
Here is a post without the ...
3
votes
1answer
366 views
Change behavior of “Insert into Post” based on attachment metadata
For a custom plugin I'm working on, I have added a checkbox element to the attachments editor in a manner like the answer provided here:
How to add a checkbox element to attachments editor with ...
0
votes
1answer
98 views
Gallery shortcode numerical sorting
When I try to sort a Gallery created through the [gallery] shortcode by numerical titles I get them sorted in alphabetical order. That means that they are sorted like so:
1, 3, 34, 4, 56, 6, etc.
...
0
votes
1answer
127 views
How do a put a form with php code into a variable or shortcode?
I'm trying to put my frontend form into a variable or a shortcode so I can wrap another shortcode around it (specifically Bainternet Post Creation Limits).
My form has PHP code in it so I'm not ...
0
votes
2answers
156 views
How to load shortcode sooner
I am trying to add a shortcode to my menu, the menu item shows up but not the shortcode output.
I think the problem is that the shortcode runs after the menu has run and therefore the shortcode ...
1
vote
1answer
27 views
detect when shortcode ran for the last time
I'm wondering, given this code:
add_shortcode( $tag , $func );
Is there a hook I can use that will always be called AFTER the last time $func was called, but soon enough, so I can still call ...
0
votes
2answers
57 views
Place the page title into the short code
I have created a short code called [contianer-narrow][/container-narrow] which wraps your content in a twitter bootstrap class: .container-narrow the issue is that the page title is not included. is ...
0
votes
1answer
123 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 ...
1
vote
1answer
150 views
do_shortcode() doesn't work if shortcode contained in variable, works if shortcode passed as string
I'm developing a plugin, wherein one of the features is to switch out forms on a specific page by changing the shortcode within a custom field.
within my plugin file:
function getShort()
{
...


