If Elseif Query

This cannot work. It has to look like the following (or similar): <?php if (get_post_meta($post->ID, ‘TourURL’, true)) { ?> <div class=”tourenquiryonline”> <h2>Book or Inquire</h2> This tour can be booked online. </div> <?php } elseif (get_post_meta($post->ID, ‘bhid’, true)) { ?> <div class=”tourenquiryonline”> <h2>Book</h2> This tour can be booked online via the form on the right hand … Read more

CSS conditional on custom field value

Without any other context (which means you will likely need to adapt to your specific needs), I would consider using the post_class filter. Using this filter, you can access the post meta for the current post, and conditionally add a CSS class to the post container. For example: function wpse129167_filter_post_class( $classes, $class, $postid ) { … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)