I have a syntax issue with WP. I was wondering if anybody knew what the issue was and how I can solve this. I've already tried the codex subsository and I've found no obvious answer.
Here is my code
<?php if (get_post_meta($post->ID, 'PostImage') ) : ?>
<a href="<?php the_permalink(); ?>">
<img src='<?php echo get_post_meta($post->ID, 'PostImage', true); ?>' width="180px" />
<?php endif; ?>
This works as normal. I wanted an else if on the end. The issue I have is that I want the listing to be full width is there is no image on the left-hand side. This can easily be achieved in CSS if I put an else or else if.
WordPress must be doing well. CMS and WordPress forum section