Disqus moderation page not working in WordPress admin section

I had a response from Disqus Support regarding this issue: Hi Scott, To clarify, the Disqus moderation panel in WordPress is not intended to be used with https. If you would like to use the moderation panel in https you’ll need to go to the Disqus moderation panel directly at: https://scotthelme.disqus.com/admin/moderate/#/approved If you have any … Read more

How to add a credit line to a photo caption

I tried to do this once and almost got almost. Here’s what I did learn. Depending on your needs, this solution may be workable. You can append content to media when it’s inserted into the editor using the get_image_tag filter: /** * Filter to get caption and append image information to it. * * @return … Read more

Pluck single parent category from get_the_category

You can check the category ‘parent’ arribute, and if is 0 the category is a parent one. I’ve also noted some things on your code: When the is is passed get_the_category is unused, but it is called anyway You use get_the_category assuming function are called in the loop, but there is no check for that … Read more

wp_query conditionally get posts

You can check if a query has posts with if( $your_query->have_posts() ), and only output the container if it passes that test. $featuredPosts = new WP_Query( array( ‘posts_per_page’ => 2, ‘cat’ => 6, ‘offset’ => 4 ) ); if ( $featuredPosts->have_posts() ) : echo(‘<ul class=”right-hang”>’); while ( $featuredPosts->have_posts() ) : $featuredPosts->the_post(); endwhile; echo ‘</ul>’; endif;

All the pages are blank [closed]

The problem was with the theme of the website. So the error was here: /home/—/public_html/wp-content/themes/ifeaturepro/page.php on line 15 Here is the correction: echo ‘<script type=”text/javascript” src=”https://use.typekit.net/ngr4yya.js”></script>’ . “\n”; echo ‘<script type=”text/javascript”>try{Typekit.load();}catch(e){}</script>’; Strange. The person that coded the theme put HTML in the PHP.