Custom WP theme not showing shortcodes
The other shortcode plugin probably includes this code: add_filter( ‘widget_text’, ‘do_shortcode’ ); If you add this to your theme’s functions.php, the shortcodes might render?
The other shortcode plugin probably includes this code: add_filter( ‘widget_text’, ‘do_shortcode’ ); If you add this to your theme’s functions.php, the shortcodes might render?
You can pass values by adding your own filter. Proof of concept: add_filter( ‘my_filter’, function() { return array(1,2,3); } ); function print_partners_scripts() { $args = apply_filters(‘my_filter’,null); var_dump($args); } add_action( ‘wp_footer’, ‘print_partners_scripts’ ); Where you to register and enqueue your script instead of echoing it directly to the page, you could use wp_localize-script to pass information … Read more
I checked your solution (copy and paste) and it is working fine in WordPress 3.7.1 Maybe check your post again. Can you provide a link to your site? (can not comment yet, thats why I answer)
Clarify: Enqueueing scripts within shortcode only loads in footer?
Where is escaped the shortcode?
Automate post creation in wordpress
It looks like you are getting caught in some wpautop() replacements. Many people find the defualt WordPress wpautop() filter to be frustrating. So often in highly customized themes, there is a homegrown replacement. For example, the theme you mentioned has a replacememt for some of the default WordPress filters. You can see a thread about … Read more
If your code is truly going to be the slug (“secret-page” = example.com/secret-page), you could do something like this… wp_redirect(get_bloginfo(‘url’).”https://wordpress.stackexchange.com/”.$_POST[‘access_code’]); But realize that headers cannot have already been sent, so this needs to happen before get_header(). Some more testing would be needed, but that should get you down the right path in principle. You could … Read more
I can think of a couple of options: Create a new shortcode, e.g. my_gallery. You can copy the code in wp-includes/media.php. Look for the code staring with add_shortcode(‘gallery’, ‘gallery_shortcode’); and then the actual function. Rename / modify as needed. The actual img link is within the $link variable Use something like this (untested), which should … Read more
Make sure to wrap content with do_shortcode() I’m not sure what the exact function looks like, but for simplicity sake take a look at this example: //[tab]Content[/tab] function tab_func($atts, $content = null) { extract( shortcode_atts( array( ), $atts ) ); $output=”<div class=”tab”>”.do_shortcode($content).'</div>’; return $output; } add_shortcode( ‘tab’, ‘tab_func’ ); If you take a look at … Read more