Vague Errors from VIP Scanner Plugin

The first one says that you’re doing an echo or print of one of $GLOBALS, $_SERVER, $_GET, $_REQUEST, or $_POST. This can often lead to Cross-Site-Scripting security issues. It should tell you what line the offending code is on. The second one says that you’re missing the WordPress.com VIP link, which is a link to … Read more

Sort author list alphabetically

Your Query gets the authors ID and is you want them sorted Alphabetically you will need to get the author(user object) so try: $authors = $wpdb->get_results(‘SELECT DISTINCT post_author FROM ‘.$wpdb->posts); if($authors){ $users = get_users( array( ‘include’ => $authors, ‘orderby’ => ‘display_name’ )); foreach ((array)$users as $user) { echo ‘<li>’ . $user->display_name. ‘</li>’; } }

WordPress sections in htaccess kills FrontPage permissions

To make sure WordPress catches requests to your blog only you have to restrict the rewrite rules to your domain (host) name. # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / # must match exactly your domain name RewriteCond %{HTTP_HOST} ^example\.com$ RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] … Read more

load src of images that attachs in wordpress’s post

The following line is incorrect as showposts is deprecated. $recent = new WP_Query(“showposts=30”); Instead use, $recent = new WP_Query(‘posts_per_page=30’); Following that, Does the thumbnail size of 80×80 exist? array(80,80) If not try any of, $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), small ); $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), medium ); $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), large ); Remember each of … Read more

How do i set up multiple portfolios (each with its own defined set of images -) to display on the same page?

Generally speaking this should produce the structure you’re looking for. It’s 4 separate WP_query loops, and each loop pulls in posts from the category named. <div id=”portfolio”> <div class=”col”> <?php $cat1 = new WP_query(array(‘category_name’ => ‘design’)); if($cat1->have_posts()) : while($cat1->have_posts()) : $cat1->the_post(); ?> <div class=”item”> <?php if(has_post_thumbnail()) { the_post_thumbnail(); } ?> </div> <?php endwhile; endif; ?> … Read more