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)

2
votes
0answers
388 views

Custom media upload content for inserting custom post shortcode

I’m working on a plugin that creates custom post type “portfolio” along with shortcode to insert in any page or post. The shortcode is: [portfolio option1=“1” option2=“0” option3=“1” ] And it works ...
1
vote
0answers
94 views

How to have different captions for same image, for galleries?

Seems like I can't have the same image in different galleries with different captions. Is it possible to make that working in any way? Like if we could change the shortcut code that Wordpress is ...
1
vote
0answers
110 views

Wordpress Shortcode callback function with a plugin

I am working on a plugin and the plugin currently works great on the admin section but I'm trying to extend the functionality to the front end and using a shortcode to use the same functions. I have a ...
1
vote
0answers
126 views

wp_editor in thickbox

I am updating a shortcode generator that I made before and I want to add in addition to text areas inputs etc.. a tinymce editor, so I call wp_editor in the ajax content of the thickbox, the editor ...
1
vote
0answers
95 views

Shortcode default attributes over-riding non-default attributes

I have a shortcode with default attributes. It works fine with the default attributes, but the user-entered attributes do not over-ride the default attributes. Here is my shortcode code: function ...
1
vote
0answers
300 views

Shortcode in posts called by ajax is not working

I am using ajax to load content of post. Functions like the_title() works fine, but unfortunately the_content() doesn't returns any shordcodes( gallery nor tablepress ) data. here is my code: ...
1
vote
0answers
364 views

do_shortcode via ajax

I try to call contact-form-7 via ajax with do_shortcode. But it shows just "shortcode code". function example_ajax_request() { // The $_REQUEST contains all the data sent via ajax if ( ...
1
vote
0answers
15 views

Widget not displaying in WMPU sites

I'm modifying a theme for a WPMU install, and I've hit a wall. In order to display a text widget in a specified area, I'm using: $args = array( 'before_widget' => '<ul ...
1
vote
0answers
538 views

Adding css to wp_head from shortcode

I'm trying to add CSS to wp_head, from within the method called to render a shortcode. I know that wp_head does not take any parameters, so I'm trying to figure out the following: The method called ...
1
vote
0answers
198 views

WP UI style within shortcode - Any Suggestions?

I am using the wp-ui Wordpress plugin to create vertical tabbed content. What I want to do is add a span to part of the tab title - to add some additional style, but the shortcode/plugin strips my ...
1
vote
0answers
293 views

How to protect parts of my code from TinyMCE modification when switching from text to visual mode?

I've got the following problem. When I switch from 'text' to 'visual' mode - TinyMCE is automatically messing around in the code doing unwanted things which breaks my styling - not so good ;/. Is ...
1
vote
0answers
107 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 ...
1
vote
0answers
74 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
0answers
73 views

Complex Slider Shortcode Help

I have a PHP-Code for Slider which I found. Now I want to transform it into a Wordpress shortcode. Here's the Code: <!-- Slider --> <div class="big-slider-wrapper block-full ...
1
vote
0answers
228 views

Stop wptexturize from texturizing my shortcode

I have a script outside of Wordpress that generates an HTML file a few hundred times a day. I figured the best way to get the contents of this file in to a specific page would be a shortcode. I ...
1
vote
0answers
97 views

Using shortcode to display array in array

I am using a widget, U more recent posts. Seems to work with custom taxonomies when you input the correct data into it in a widget form, but the suggested shortcode doesn't work (and I am trying to ...
0
votes
0answers
16 views

Cannot send session cache limiter - Headers Already Sent

Error Messages is as follows : Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at ...
0
votes
0answers
15 views

template_redirect to accompany with a shortcode

In one of my plugin's shortcode I'm handing user login / registration on the fly with a post submission. So the whole thing is happening within the shortcode like: <?php function this_shortcode() ...
0
votes
0answers
29 views

Short codes not working - not rendering

I have a brand new (few weeks old) Wordpress blog for my lake house. I downloaded a nice theme (Bentuestu) suitable for rental properties and then tried to use the short codes from that theme on the ...
0
votes
0answers
16 views

add_filter post_gallery and do_shortcode

I'm attempting to swap out short codes on the fly but having an issue that I'm hoping someone can help with. Basically I've added a "Gallery Type" option to the wp.media library and am using the ...
0
votes
0answers
11 views

image map in a widget

I have an image that is inserted in a widget via shortcode. You can see on the bottom-right of footer that the image is actually an image map. My problem is that I have no idea how to hook the map ...
0
votes
0answers
21 views

Serializing URL via wp add_shortcode to auto select from option list onload

first time in the wordpress stackexchange community! Great that there is such a thing... Scope: Use of the add_shortcode method to use url string to automatically select options in a scraped table on ...
0
votes
0answers
18 views

Create dynamic content in Wordpress Shortcode

can i create content (mean html markup with my data) dynamically, and place this in my shortcode? i have Visual builder where i can add some html elements inside my shortcode, shortcode looks like ...
0
votes
0answers
5 views

Jetpack Post by Email at specific Date and Time?

Currently, I can post by email using the Jetpack plugin and I can use the [delay] shortcode to set the date it should be published. However, I need to set the time of day it should be published as ...
0
votes
0answers
19 views

How to display the 3rd & 4th level children only, using get_children()?

I found this code & edited it for my needs. How can I only display the 3rd & 4th level child pages of "Home"? I just want to display the 3rd & 4th level child pages because that's the main ...
0
votes
0answers
8 views

TinyMCE Custom Styles or Shortcode Components?

One of the WordPress theme projects I'm working on for a hiking and travel blog adds additional facts and notes in small info boxes about the particular topic being discussed. For instance, on a post ...
0
votes
0answers
17 views

Shortcodes on instagram

I want to embed my instagram picture using a shortcode, I don't want to copy the link and paste it as other forums suggest because our editors will be the ones adding embeded links. I also do not ...
0
votes
0answers
24 views

Content Section Custom Anchor Not Working

I purchase WP theme (Techwise) and I found an issue with content menu sidebar in post page. that content not working as same (toc) Table of Content. it's not working with Arabic letters but working ...
0
votes
0answers
25 views

Plugin Error on activating

I'm building theme. but for custom post type, custom taxonomies and shortodes . I created the simple plugin. just plugin info and then functions to create CPT CT and shortcode. here is the example: ...
0
votes
0answers
17 views

Get the excerpt length to return attribute

I am writing a shortcode where I would like to set a number to an attribute and then return it in the excerpt. So the shortcode [excerpt_test=10 another_option=something] gets me the excerpt length of ...
0
votes
0answers
71 views

Limit the number of successful logins

I would like to retrieve the number of successful logins of a user and act accordingly. If user logged in more than 10 times, then log out user automatically with wp_logout() or similar. I would ...
0
votes
0answers
10 views

Custom short code pulling all tag IDs instead of selected ID

My server host recently detected malware in a script and deleted the files, causing the audio player plugin on my website to go bye-bye. I'm trying to restore but now the custom short code I wrote is ...
0
votes
0answers
23 views

Previous/Next Post Link within Child Post

I am creating a custom plugin for Sensei by WooThemes that allows me to create custom shortcodes. Currently, I am working on a feature that lets me move to previous/next courses within lessons. As far ...
0
votes
0answers
14 views

Snippet for extern page

I am extremeley new to wordpress developing. My current situation is that I have created a plugin with a shortcode which i can insert into my wordpress site. Now I am wondering if there is a way how ...
0
votes
0answers
22 views

Ads below footer

A client of mine has ads on his website, which are managed by a CPT. The ads can be pulled in via a widget, hardcoded query and a shortcode. I have an issue that isn't consistent that I'm trying to ...
0
votes
0answers
11 views

Problem with the_content() shortcode

The content from the footer pages on my website as well as blog post content is missing on my live site, although all is OK on my development service. There seems to be an issue with the short ...
0
votes
0answers
12 views

Does a String Replacing script affect shortcode output?

I have some javascript in the header that finds and replaces any phone number string in the static html output of the page. It's working great on strings that are outputted by the_content, but for ...
0
votes
0answers
41 views

Shortcode error

I've created a plugin that includes the shortcode below, it works fine one website ( http://www.porministries.org/wordpress/?page_id=16 ) but not on another website ( http://www.rccov.com/media/ ). I ...
0
votes
0answers
28 views

Passing multidimensional arrays and associative arrays to plugin shortcodes

I want to pass complex structured data to a plugin I am creating. I have been using text strings in shortcodes with delimiters that are exploded into arrays by the plugin but things get increasingly ...
0
votes
0answers
32 views

How to get value from listbox in TinyMCE

I want to get the value in the listbox but it always return text value (Yes/No instead of True/False). This is my code: onclick: function () { ed.windowManager.open({ title: 'A Grid based ...
0
votes
0answers
29 views

How to change color of headlines within shortcode?

I have done my own shortcode for the layout of the page like this: (from the functions.php file) // One Half function layout_one_half($atts, $content = null) { $atts = shortcode_atts( array( ...
0
votes
0answers
19 views

Shortcode Menu plugins default value

I use Shortcode Menu plugins, everything works fine. When I'm using a smartphone, the menu is responsive but the default value is the last value of the Menu. I would like that the default value is ...
0
votes
0answers
65 views

Inserting a variable into a shortcode inside php

$idstring = do_shortcode( $cb_video_url ); long story short, this gets the YouTube video ID from a given url (example: 5kx45jHqQ ) and there is a youtube embed plugin for wordpress that uses the ...
0
votes
0answers
20 views

Special characters get auto replaced

When I create a new post in WordPress and I publish my post, everything is OK. But when I try to edit my old post, the code in [code] has changed. For example " changes to &quot; and < ...
0
votes
0answers
33 views

Extract a WordPress shortcode attribute from function and apply in another one

I try to modify simple AJAX contact form so that it could take shortcode arguments. Specifically I need to send a message about the successful submission of the form, and as well error message based ...
0
votes
0answers
32 views

Custom Login in Shortcode got error

I am creating a shortcode that having a login form but it seems I got error when I try to login. this is my code. function postCustomWPLogin($username, $password){ $creds = array(); ...
0
votes
0answers
18 views

why full page is being feedbacked when using ajax?

Having kind of strange problem. The code i'm using in the plugin is as below //user login form add_shortcode('ajax_login', 'atest'); function atest(){ global $load_js; $load_js = true; return ...
0
votes
0answers
43 views

Placing PHP inside Theme Accordion

I have already posted this on Wordpress.org support (with no response yet) however on the advice from someone they thought this website maybe better suited. I realize that short codes should probably ...
0
votes
0answers
41 views

Modify shortcode to work with custom taxonomies and slugs

I am using this code which works fine with posts but I am looking to modify it so that the user can specify in the shortcode: custom post type name taxonomy name slug of taxonomy category For some ...
0
votes
0answers
51 views

Replacing Gallery Shortcode with Foundation's Clearing

Using wordpress 4.1 and Foundation 5, and attempting to replace the stock gallery shortcode with foundation's clearing. In debugging mode, I get a notice of: Strict Standards: ...