Custom Fields as Post Type Options

Your code… function wpuf_update_vehicle_year( $post_id ) { $year = get_post_meta( $post_id, ‘seek_property_year’, true ); update_post_meta( $post_id, ‘seek_property_year’, $year ); } add_action( ‘wpuf_add_post_after_insert’, ‘wpuf_update_vehicle_year’ ); is probably executed, but nothing will change anyway because the thing it does is to grab meta data (with get_post_meta) for seek_property_year and then update the same meta data with the … Read more

To set a post is new/old in vertical scrolling

Try this: <marquee onmouseover=”this.setAttribute(‘scrollamount’, 0, 0);” onmouseout=”this.setAttribute(‘scrollamount’, 2, 0);” behavior=”scroll” width=”100%” loop=”infinite” direction=”up” scrollamount=”2″ scrolldelay=”.0001″ height=”300″> <?php $the_query = new WP_Query( ‘showposts=10’ ); $now = current_time(‘timestamp’); $still_new = 60*60*24*10; // 10 day window while ($the_query -> have_posts()) : $the_query -> the_post(); if ( $now – get_the_time(‘U’) > $still_new ) { ?> <li class=”noticboard”><h3><?php the_time(‘d/m/Y’); ?>&nbsp;</h3> … Read more