How do I do this?: If custom post type exists, echo it, else do not

No need to be that complex, you can use the has_post_thumbnail function <?php if(has_post_thumbnail()): ?> <a href=”https://wordpress.stackexchange.com/questions/35217/<?php the_permalink(); ?>”><img src=”<?php bloginfo(url); ?><?php echo get_post_meta($post->ID, ‘featured-image-large’, true); ?>” title=”<?php echo get_post_meta($post->ID, ‘featured-image-title’, true); ?>” /></a> <?php endif; ?> et voila! =)

Gravity Forms ExactTarget Add-on Plugin: Nothing happens after step 2 when creating a new feed [closed]

It appears that there are some SimpleXMLElement objects in the array that is to be serialized in stack trace above, and as the error says, ‘Serialization of ‘SimpleXMLElement’ is not allowed.’ Boo. I tried to figure out how to modify the response so it replaces all the SimpleXMLElement objects, but this was a pain. I … Read more

Archive with specific keyword by category sorted by date

Categories will use category.php by default as their archive template (site.com/category/category-name). Customize that with the code you’ve used here, rather than using a ‘page template’. If you don’t want it to say category/ in the URL there are plugins or functions.php code you can use to remove it that can be found numerous times in … Read more