2 tick boxes appearing below comments

Those are “subscribe” checkboxes. View source and you can see them and the rest of the content. <p class=”comment-subscription-form”> <input type=”checkbox” name=”subscribe_comments” id=”subscribe_comments” value=”subscribe” style=”width: auto; -moz-appearance: checkbox; -webkit-appearance: checkbox;” /> <label class=”subscribe-label” id=”subscribe-label” for=”subscribe_comments”>Notify me of follow-up comments by email.</label></p> <p class=”comment-subscription-form”> <input type=”checkbox” name=”subscribe_blog” id=”subscribe_blog” value=”subscribe” style=”width: auto; -moz-appearance: checkbox; -webkit-appearance: checkbox;” /> … Read more

How do I display the next 3 posts in the sidebar?

$args = array( ‘numberposts’ => 3, ‘offset’ => 5 ); $posts = get_posts( $args ); foreach( $posts as $post ){ setup_postdata( $post ); [output the post here with the_title(), the_content(), etc] } If you search in the codex with ‘query posts’, you will find a lot.

making a few sites in wordpress

You can use WP Network to manage multiple websites through a single WP installation. But, It is not always recommended unless your scenario closely fits with its concept. If each of your website is exclusive to each other (each site require different set of plugins and theme) and you have just started to use WordPress, … Read more

Redirect posts to sub domain except pages

I would do this per server configuration. Here is an example for the .htaccess: RewriteCond %{HTTP_HOST} !^blog\.example\.com$ RewriteRule (.*)\.html$ http://blog.example.com/$1.html [L,R=301] You could do this in a WordPress plugin too. Untested suggestion: add_action( ‘template_redirect’, ‘wpse_77279_redirect’ ); function wpse_77279_redirect() { if ( is_single() and ‘blog.example.com’ !== $_SERVER[‘HTTP_HOST’] and ‘post’ === get_post_type() ) { wp_redirect( ‘blog.example.com’ . … Read more

Get image paths from RSS feeds

Images are in the feed, if the feed is a fullfeed, not a excerpt. Check the xml snytax in atom format for <content:encoded> or in RSS2 for <description>. In this tags you can find the images of the content.

Columns in a “post”

You can achieve the same by designing the layout structure in Single.php template page. In wordpress, by default single.php is the filename which will display the single post of your blog. You just need to create the design layout as you need in this page.

How to limit post query to only return a total count of items with certain post statuses?

WHERE post_status NOT IN (‘auto-draft’,’trash’) Looks like you can add that to your base query. /* — Preparing your query — */ $query = “SELECT * FROM $wpdb->posts WHERE post_status NOT IN (‘auto-draft’,’trash’) “; This is only barely a WordPress question. Why are you not using core functions for this? Also, NOT IN is not … Read more

WP_Query based on a custom field result

Here’s the corrected code, thanks @Milo! <ul> <?php $recentPosts = new WP_Query(); $recentPosts->query(‘showposts=6&cat=1&meta_key=ticker&meta_value=yes’); ?> <?php while ($recentPosts->have_posts()) : $recentPosts->the_post(); ?> <li> <?php if ( has_post_thumbnail() ) {?> <div class=”post-thumb-140″> <a href=”https://wordpress.stackexchange.com/questions/78477/<?php the_permalink() ?>”><?php the_post_thumbnail( ‘post-thumb-140’ ); ?></a> </div> <!–post-thumb–> <?php } ?> <a href=”https://wordpress.stackexchange.com/questions/78477/<?php the_permalink() ?>” rel=”bookmark”><?php the_title(); ?></a> </li> <?php endwhile; ?> </ul>

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