shortcodes between square and curly brackets

To WordPress, as it parses through the content, only the tags using square brackets will be treated as short codes. The curly bracket example given would not be parsed by the WordPress core. It is possible the tag would be parsed by a plugin or theme if they are looking for hooks in the content … Read more

How do i reference the theme path in pages for images?

Use get_template_directory_uri() print get_template_directory_uri() . ‘/image.jpg’; In child themes use get_stylesheet_directory_uri() if you have replaced the image. In a shortcode this would look like this: <?php /* Plugin Name: Theme URI Shortcode */ add_shortcode(‘theme_uri’, ‘wpse_66026_theme_uri_shortcode’ ); function wpse_66026_theme_uri_shortcode( $attrs = array (), $content=”” ) { $theme_uri = is_child_theme() ? get_stylesheet_directory_uri() : get_template_directory_uri(); return trailingslashit( $theme_uri … Read more

Short code for Venues

There aren’t currently any shortcodes for venue information (address, postcode, other meta etc). However, you can copy the single-event.php template (find it in the templates directory of the plug-in) into your theme and edit it there to include venue information via provided template functions: Available functions When used inside the loop, you don’t need to … Read more

Stop parsing shortcodes

The correct way is calling remove_filter with the same priority as the hook was added: remove_filter( ‘the_content’, ‘do_shortcode’, 11 ); Some plugins change this filter’s priority, so you could clear the global list of registered shortcodes temporary: add_filter( ‘the_content’, ‘toggle_shortcodes’, -1 ); add_filter( ‘the_content’, ‘toggle_shortcodes’, PHP_INT_MAX ); function toggle_shortcodes( $content ) { static $original_shortcodes = … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)