Remove Shortcode […] from Blog Preview

You can do with PHP. Just remove part where is get_content() and add this: <?php $content=get_the_content(); $content = preg_replace(‘#\[[^\]]+\]#’, ”,$content); echo apply_filters(‘the_content’, $content); ?> That is regular expression added inside content. This regex will remove all tags inside content.

Gist shortcode is not working

Gist tags and oembed handling is specific to WordPress.com, and doesn’t come bundled with standard WordPress from wordpress.org You will need to acquire a plugin to register gists as an oembed provider, or add embed tags. There are plenty of plugins that do this available, I use this one. If you’d like to write your … Read more

How do I turn a shortcode into PHP code?

In general, inserting and executing shortcodes directly into templates files is not good idea and it is not what shortcodes are intented for. Instead, you should use the shortcode callback just like any other PHP function or template tag. For example, let’s imaging this shortcode: add_shortcode(‘someshortocode’, ‘someshortocode_callback’); function someshortocode_callback( $atts = array(), $content = null … Read more

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