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)

0
votes
1answer
16 views

Shortcode strips formatting and returns at content top

Using the Advanced Custom Fields plugin and I've got a shortcode going for a repeater field, but it returns the list at the content top. I changed it from an echo to a return, which I understood would ...
0
votes
2answers
25 views

div having different appearances in different themes

I have a shortcode in a plugin that is supposed to display a div. The div can be styled in the settings. The problem is: the div has different appearance in different themes. This obvious is caused ...
1
vote
0answers
15 views

Add button to kitchen sink toggle

I have created a simple function along with a shortcode, my goal is now to add a button in the sink toggle of wordpress so that the user doesn't have to type anything. Is this hard to achieve? how ...
0
votes
1answer
38 views

do_shortcode within a shortcode

This may sound a little confusing but I'll try my best to explain. I've made a shortcode that grabs the content of a post (when given the id), it looks like this: $post_id = $id; $queried_post = ...
0
votes
0answers
14 views

php within a shortcode within php

I've been trying for ages to get this work, but to no avail! Any help would be greatly appreciated. <?php echo do_shortcode("[thumb]'".bp_profile_field_data('field=3')"'[/thumb]"); ?> ...
0
votes
0answers
18 views

Rad Dropbox Uploader shortcode issue

I have implemented Rad Dropbox Uploader with WP-Members. I needed something similar to the issue here, so I coded: add_action( 'wp_loaded', 'wpse_100200_shortcode_magic' ); function ...
0
votes
1answer
19 views

Custom shortcode that writes to file

I'm trying to maybe do too much in a shortcode call. Here's the code I have: //[rand] function randnumber_func( $atts ){ $digits = 4; $randnumber = rand(pow(10, $digits-1), pow(10, ...
0
votes
1answer
20 views

How to print [embed] code in wordpress [duplicate]

I would like to print the following code in wordpress. [embed]http://www.youtube.com/watch?v=9bZkp7q19f0[/embed] But every time I use that code in the wordpress editor, it automatically embeds the ...
0
votes
3answers
32 views

shortcode for recent custom type post

I'm not a coder so I may have done some "coding" crimes, apologies. I've bought a theme who has shortcodes for last posts but not for last "custom post type". So I tried to create last "custom post ...
0
votes
0answers
27 views

Dynamically load JJ NextGen Slider/ Slideshow (dynamically add shortcode with jquery)?

My front page includes an image slideshow by JJ NextGen Slider (Link). Therefore I am using PHP and do_shortcode(). This is the full code: <?php echo do_shortcode('[jj-ngg-jquery-slider ...
0
votes
1answer
30 views

Auto Gallery from folder contents

I need to be able if this is possible, (i am a newbie at this so please take that into consideration) I want to create a Wordpress shortcode that will add an automated gallery of the contents in a ...
0
votes
1answer
23 views

Are shortcodes case-sensitive?

If I write a plugin and register a shortcode using this code: add_shortcode('footag', 'footag_func'); and a user uses this in their post: [FOOTAG] Is it supposed to work?
-1
votes
0answers
24 views

Inserting jQuery UI accordion in to posts/pages? [closed]

I've been looking at all the themeforest premium themes and notice they are including jQuery UI in to their themes, probably with some shortcode stuff. Example - ...
0
votes
1answer
31 views

Display only posts with comments

I have this code to show recent posts from one category. I need to show only the posts which have comments. How can i do that via shortcode? /* Shortcode to output recent posts from one category */ ...
0
votes
2answers
33 views

Create shortcode for list of custom post titles with custom fields alongside

I'm stumped. I've looked at various sites but haven't found the exact code I need. Basically I want to create a list of custom post titles with the date from one of the custom fields for that post ...
0
votes
1answer
23 views

tiny_mce_before_init preventing custom shortcode icon appearing

I'm using the following to trim the TinyMCE editor // Restrict buttons on the rich text editor function formatTinyMCE($in) { $in['remove_linebreaks'] = false; ...
0
votes
1answer
29 views

Changing layout of defaul gallery output to masonry

I'm changing the default layout for gallery shortcode. I have this in my functions.php: $attr['columns'] = 1; $attr['size'] = 'full'; $attr['link'] = 'none'; $attr['orderby'] = 'post__in'; ...
0
votes
1answer
67 views

Shortcode in AJAX popup

I am trying to use a shortcode from Ultimate Facebook plugin to display a FB connect button in an AJAX popup and can't seem to get it work properly. I searched and used the solution given by djb in ...
0
votes
2answers
63 views

Redirect function inside a Shortcode

I am developing a free plugin for connection a external support system to WordPress to be able to authenticate users on WordPress. For this, currently from the external system, the user is sent to ...
0
votes
1answer
40 views

Wordspress add <p> into my javascripts

I use a slider called revoslider and use it via shortcode. When i use the shortcode and do not use visual editor for insert and save, the slider does not work because WordPress adds <p> into ...
1
vote
2answers
28 views

Secure Pages Best Practice

I am in process of writing a plugin that has front-end shortcodes that display a user's information/data. If the user is not logged in, I need to redirect to a front-end login page/form. What would ...
0
votes
0answers
23 views

Shortcodes Display in Meta Description [closed]

I use a shortcodes plugin tailored for my theme, ZillaShortcodes. It does the job, but one thing that gets on my nerves is that when I insert any kind of shortcode, it comes up in the meta description ...
-1
votes
0answers
28 views

non static page with shortrcode as front page

How do I set up non static page which contains a short code to a plugin as frontpage. I was trying to set up the page as static frontpage but in this case the interaction , like clicking on button ...
0
votes
1answer
30 views

Front-End Form Submission in Shortcode

The plugin I am working on contains shortcodes with forms on them. Upon form submission (POST), I do some database work, and then planned on redirecting to another page after the db work is complete. ...
0
votes
2answers
44 views

how to remove filter from wordpress shortcode output

Twitter URL plugin add the filter to the_content. This filter messing up the output of my plugin shortcode output. So I wish to remove this filter only for my shortcode output. ...
0
votes
0answers
30 views

Adding shortcode field to edit gallery / Gallery Settings

I want to add a field to the Add Media / Edit Gallery / Gallery Settings column which is able to accept shortcodes. I want to do this so that I can add a Cart66 shortcode which will "render" an add ...
1
vote
1answer
23 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
40 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
35 views

Custom field for default gallery

How I can add custom field in default WordPress gallery? in visual editor and in shortcode.
0
votes
1answer
40 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
25 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
63 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'] ...
0
votes
2answers
39 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
0answers
30 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
26 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(''); ?> ...
2
votes
3answers
86 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
48 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 ...
-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();   ...
0
votes
2answers
56 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
0answers
24 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
52 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
59 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
30 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
21 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
55 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 ...
0
votes
1answer
44 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
37 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 ...
1
vote
2answers
51 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
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 ...
1
vote
1answer
30 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 ...

1 2 3 4 5 13