Custom Field to post_title

You can achieve this using the save_post hook. save_post is an action triggered whenever a post or page is created or updated, which could be from an import, post/page edit form, xmlrpc, or post by email. add_action( ‘save_post’, ‘wpse254017_set_post_title’, 10, 2 ); function wpse254017_set_post_title ( $post_id, $post ){ //This temporarily removes action to prevent infinite … Read more

Add pagination to custom page

You need to set up query for pagination, look at this example : $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; $args = array( ‘post__in’ => $ids, ‘post_type’ => ‘product’, ‘paged’ => $paged, ‘posts_per_page’ => 15); query_posts($args);

Custom field linking problem!

What you’re meant to be doing is echoing the $meta_value, not assigning it to a variable. Also don’t forget to escape the value 🙂 <!– Claim Your Bonus Button –> <p class=”readmore”> <a class=”more-link claim-bonus” href=”https://wordpress.stackexchange.com/questions/254370/<?php echo( esc_url( get_post_meta( $postID->ID,”tracking_url’, true ) ) ); ?>” rel=”nofollow” title=””>Claim Bonus &raquo; </a> </p>