Automatic Refresh all posts at once

you can do something like this: $args = array( ‘posts_per_page’ => 1000, ‘post_type’ => ‘post’ ); $the_query = new WP_Query( $args ); if ( $the_query->have_posts() ) { while ( $the_query->have_posts() ) { $the_query->the_post(); $casa_id = $post->ID; update_post_meta($post->ID, ‘casa_id’, $casa_id); } }

Create a full width responsive header image per page

John there are lots of ways to do this, depending on what you want exactly and how much experience you have with html/php/css (or how much time you’d want to spend learning). There are plenty of plugins on wordpress that could achieve this. You might want to just try some of them out: https://wordpress.org/plugins/search.php?q=custom+header If … Read more

How to convert custom field value to tag

Since this is a one-time task, it’s easiest to create a migration script like so. Note: It might timeout (trying to process 90k rows) depending on how much memory your server has. function my_migration_script() { global $wpdb; // Quick and dirty way to get post ids. Normally don’t use this method. $post_ids = $wpdb->get_col( “SELECT … Read more

Don’t display html if custom field is empty

I have no experience with WP UI, but the following code might do the trick: <!– Videos Tab –> <h3 class=”wp-tab-title”>Videos</h3> <?php if (get_field(‘videos’) && get_field(‘videos’) != “”) { ?> <div class=”wp-tab-content”> <?php the_field(‘videos’); ?> </div><!– Close Videos –> <?php } ?>

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