Tagged Questions
2
votes
2answers
136 views
Adding short codes from a page's content on header and hiding the same from page's content
I have created a page and added the following shortcode from wp-orbit-slider
[orbit-slider category="test"]
I want the contents of
[orbit-slider category="test"]
be displayed on the header ...
-1
votes
2answers
92 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 ...
0
votes
3answers
170 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
50 views
Iteratively add sub shortcodes to php array
I have this shortcode structure:
[component]
[type1]some content[/type1]
[type2]some more content[/type2]
...
[typeN]some other content[/typeN]
[/component]
I would like to have the ...
-1
votes
1answer
31 views
Shortcode returning specific content of a post
I'm currently building a plugin to display specific part of post after accepting verification code. Can a shortcode return a part of a post? I mean:
Bla bla bla
[shortcode postID="100"]
Special bla ...
1
vote
1answer
97 views
How to get rid of shortcodes in post content once and for all
I changed theme/plugin now the post content still display shortcodes.
There are some tips around on hiding them, but everytime I use some content functions, the shortcodes shows up again. Also, my ...
0
votes
0answers
168 views
Shortcode content does not show after calling $wpdb->get_results() [closed]
I created a wordpress plugin with a shortcode. I am just wondering why the content in the shortcode does not show after calling $wpdb->get_results();
Below is the code:
$query = "SELECT * FROM ...
1
vote
1answer
445 views
Get the content inside shortcode and apply external function to it?
function t_shortcode($atts, $content = null){
$lang = strtolower($atts['lang']);
$content = "<div id='translator' class='translate_".$lang."'>".$content."</div>";
if($lang == ...
0
votes
1answer
74 views
How to add a shortcode that creates an adjacent column of text in the content editor?
I'd like to enable a shortcode toolbar button, similar to the "More" break, that I can click to mark an insertion point where the text should be broken into columns.
Do shortcodes have encapsulation ...
1
vote
5answers
2k views
Display post shortcode content in the sidebar?
I need to display images and other content in the sidebar depending on a page. Pages are added dynamically and information that need to appear in the sidebar is different for each page. So I can't ...