Is it possible to check for shortcodes on a page?

Yes it is. Check this function (has_shortcode): Check for a shortcode in a page/post content One of the mistakes that many developers make when creating shortcodes (in themes and plugins) is always loading all scripts and styles. For efficiency’s sake, and also to better prevent conflicts, scripts and styles should only be loaded when they … Read more

Best tools for preparing and styling a table [closed]

WP-Table Reloaded is a great plugin which allows you to create tables and use their shortcodes in your post. Bear in mind, however, that not all themes are “table-friendly”. Alternatively, you can try Dean’s FCKeditor Plugin For WordPress, which appears to have an “Insert Table” function to keep you from messing around with HTML. And … Read more

Unable to process php via shortcode

The problem is that you are using file_get_contents() which only gets the content of the file (hence the name) if you need to render(evaluate and process the php file) then just use include(). But also if your cup_bc_layout.php file echo’s out something then you should put the include inside an object buffer and then return … Read more

Echoing Shortcode content inside the loop

You need to use do_shortcode built in WordPress function as shown below: if ($like_status) { echo do_shortcode(‘[fb_fans]’); } else { echo do_shortcode(‘[fb_nonfans]’); } Please refer do_shortcode official documentation.

Shortcode into the same shortcode

Referring to the codex article on shortcodes, you cannot use a shortcode within itself…which is to say that the following is invalid: [foo] [foo] [/foo] [/foo] you should probably make an inner-content shortcode or something.

Use a shortcode to display custom meta box contents

yeah, the question is a bit unclear. but i think you need shortcode attributes function get_custom_field_fn( $atts) { global $post; extract( shortcode_atts( array( ‘meta’ => ” ), $atts ) ); $custom_field_value = get_post_meta($post->ID, $meta, true); return $custom_field_value; } add_shortcode(‘cf_name’, ‘get_custom_field_fn’); see the codex: http://codex.wordpress.org/Shortcode_API#Attributes