Shortcode content is empty [closed]

It is the hyphen: Take caution when using hyphens in the name of your shortcodes. In the following instance WordPress may see the second opening shortcode as equivalent to the first (basically WordPress sees the first part before the hyphen): Rename your shortcode so the tag doesn’t have a hyphen.

Resolve the debugs

Number 1 is not wordPress, but PHP. $_GET[‘type’] is undefined. Use an isset( $_GET[‘type’] ) conditional. Number 2 the error message tells you exactly what to do. Instead of calling: add_custom_background(); …call: add_theme_support( ‘custom-background’ ); Number 3 the error message tells you exactly what to do. Instead of calling: attribute_escape(); …call: esc_attr(); Number 4 is … Read more

What CSS selectors to know for WordPress? [closed]

This is a good question, overall, for users looking to edit the standard twentythirteen theme, but it really isn’t going to help you in the long run. I suggest starting at the Codex to learn more about theme development, then check out the List of WP Generated Classes to see what WP is creating for … Read more

How can I filter a query by post id?

So you want the values 108,78,90 corresponding to the meta key ‘areas’ for the post with ID 94? First retrieve those IDs: $the_post_id = 94; $area_ids = get_post_meta( $the_post_id, ‘areas’, false ); //Make sure they’re all positive integers $area_ids = array_map( ‘absint’, $area_ids ); if( $area_ids ){ //We have IDs, retrieve posts $areas = get_posts( … Read more