How to check if custom field exists in this widget query

I can’t test it now, but the following should work… query_posts(‘post_type=sponsors&meta_key=_vof_sponsor_level&meta_value=Gold’); if (have_posts()) : echo “<div class=”imageshadow sponsorwidgetslides”>”; while (have_posts()) : the_post(); if ( get_post_meta($post->ID, ‘url’, true) ) { ?> <a href=”https://wordpress.stackexchange.com/questions/39982/<?php echo get_post_meta($post->ID,”url’,true); ?>”><?php the_post_thumbnail(‘sponsorwidget’);?></a> <?php } else { the_post_thumbnail(‘sponsorwidget’); } endwhile; echo “</div><!–/.imageshadow–>”; echo “<a class=”widgetlink” href=””; bloginfo(“url’); echo “/sponsors’>View all Sponsors &raquo;</a>”; … Read more

Shortcode Attribute

yeah, you are kind in the right path, just need to know that the ‘title’ is a variable that will get and past the value, so you have to call it exactly where you wrote “DO I NEED SOME TEXT HERE”, so it goes like this: function column_shortcode( $atts, $content = null ) { extract(shortcode_atts(array( … Read more

Boldy theme – Regarding the images above the boxes

The images are produced by simply displaying the content of the pages you created for each, box. Go to each of theses pages, click the image. On the top-left corner of the image two icons should appear. Click the edit icon (the leftmost icon). A dialog window will pop-up, which will allow you to edit … Read more

Converting HTML5 to XHTML

Probably the easiest way to do it is to set the doctype, etc and then use the w3c xhtml validator and just go through one by one and pick off the errors…but that will take A LOT of time, I strongly recommend you leave it as is.

How to make a posts page display only intros of posts?

You need to go inside the code of your category.php and… Change: the_content(); //or similer to: the_excerpt(); Goog luck.. Revised Answer for twenty eleven theme: 1. Open content.php and search for this line: <?php if ( is_search() ) : // Only display Excerpts for Search ?> 2. change it to this: <?php if ( is_search() … Read more

Managing database tables in WordPress multisite

use the API, the functions of WordPress for save data and check before, it is an Multisite install; thats all. The first example is only for check, is the activated as network wide. // if is active in network of multisite if ( is_multisite() && isset($_GET[‘networkwide’]) && 1 == $_GET[‘networkwide’] ) { add_site_option( ‘my_settings_id’, $data … Read more