Loop with array of posts using ‘Advanced Custom Fields’ plugin [closed]

http://codex.wordpress.org/Function_Reference/paginate_links <?php echo paginate_links( $args ) ?> Disclaimer: I’m not familiar with the Advance Custom Fields plugin. The pagination would have to be setup before you enter into the WordPress loop. Taking a count of all the available posts stored inside the the $post_objects, you would pass that variable into the paginate_links function. You’ll also … Read more

WooCommerce – Fixed quantity of a product [closed]

You might want to reconsider your approach here, at first glance it seems to me that you could greatly simplify this but using a hook after the order is processed. If all of your variations are really only quantities then it stands to reason that when an order is completed you’d update the quantities for … Read more

Extensible code

Provide a filter: $my_item = apply_filters( ‘plugin_name_item_args’, array( ‘post_title’ => $item->get_title(), ‘post_content’ => ”, ‘post_status’ => ‘publish’, ‘post_excerpt’ => $item->get_description(), ‘post_type’ => ‘post’ ), $item # pass the $item object to the filter ); A plugin can change these values now with: add_filter( ‘plugin_name_item_args’, ‘another_plugin_filter’, 10, 2 ); function another_plugin_filter( $args, $item ) { $args[‘post_type’] … Read more