Archive dropdown styling not applied

You’re targeting cd-dropdown with a class indicator (the period), the cd-dropdown is an ID and should therefore be targeted with the ID selector (a hashtag). #cd-dropdown > span, #cd-dropdown ul li:nth-last-child(-n+3) span { box-shadow: 0 1px 1px rgba(0,0,0,0.1); }

Mysterious HTTP 404 header in my own scripts

It turns out that it’s the require(‘../wp-blog-header.php’); part who caused the HTTP 404 error. I replaced the header code with: status_header(200); nocache_headers(); Both are part of WordPress API. And the problem went away. I found this solution from: http://wordpress.org/support/topic/integrating-wp-in-external-php-pages?replies=22

I would like to use create a function in my custom plugin to tell WP to use a different header

I am not sure what you want to do is doable (seems impossible to me but everything seems impossible until someone does it). I thought of a very ugly workaround. add_filter( ‘template_include’, function( $template ) { $temp = get_temp_dir() . basename( $template ); file_put_contents( $temp, str_replace( ‘get_header(‘, ‘get_header2(‘, file_get_contents( $template ) ) ); return $temp; … Read more

Am I not understanding plugins?

when faced something similar I found a solution that works if your framework resides inside a plugin (so it seems). If your main plugin file (one that is recognized by WordPress as the plugin file) is in, e.g. /plugin/Aisis/ you can put this path in a constant, eg. define(‘AISISPATH’, dirname(__FILE__)); require ( trailingslashit (AISISPATH) . … Read more

nowplaying.include.php Will Not Display Results

Your script is at /wp-content/themes/responsive-child-theme/nowplaying-example.php but you are including /nowplaying-example.php. That is not going to work. You need to provide the complete path for that include: include(get_stylesheet_directory().’/nowplaying-example.php’); Assuming I have read that right, and assuming that the files are actually there. Your other code– the widget code– contains curly quotes. Don’t use those. Use ordinary, … Read more

How to get Poster (thumbnail) Image of Video

Your video does not appear to be “attached” to the page, hence the 0 as post_parent. And your query arguments do not restrict the results to any particular page. You won’t be able to use the normal thumbnail functions. You will have to use something like wp_get_attachment_image to get the thumbnail, if you have a … Read more