Assign classes to Custom fields

I think you have to output these Custom Fields manually to do it. You can do it like so (let’s assume your custom fields are: first-meta-key, second-meta-key, third-meta-key and you set them single value – no field has multiple values assigned to it): <ul> <li><span class=”first-post-meta-key”>Name: </span> <?php echo esc_html(get_post_meta($post->ID, ‘first-meta-key’, true)); ?></li> <li><span class=”second-post-meta-key”>Name: … Read more

Can’t upload files

Apparently this is a new WordPress bug (I’m using version 3.5.2). Just set wp_debug to false and it works perfectly again. Hopefully they’ll fix this soon. define(‘WP_DEBUG’, false);

Making a site URL

In order for the site to be publicly accessible you need to host the site on a server that is publicly accessible. Your local MAMP server is almost certainly not public. There are hacks and workarounds that would let you host the site from there, but don’t. Lease a server and install your site there. … Read more

Post thumbnail dependant on category

You could do this : $categories = get_the_category($post->ID); $cat = $categories[0]->cat_name; if ( has_post_thumbnail() && $cat == ‘news’ ) { the_post_thumbnail(‘medium’); } *EDIT: the code grabs the post category, line 2 grabs cat name from the object and I use it as a condition in if statement *