Meta Box plugin image_advanced not showing up on frontend

I figures this out. Here is the code that worked: $images = rwmb_meta( ‘mostfilms_onesheet’, ‘type=image_advanced&size=full’ ); foreach ( $images as $image ) { echo “<img src=”https://wordpress.stackexchange.com/questions/190698/{$image[“url’]}’ width=”https://wordpress.stackexchange.com/questions/190698/{$image[“width’]}’ height=”https://wordpress.stackexchange.com/questions/190698/{$image[“height’]}’ alt=”https://wordpress.stackexchange.com/questions/190698/{$image[“alt’]}’ />”; }

Video Player for Free WordPress Site [closed]

For the most popular video services, you can just paste the link on a line by itself in the post editor: https://en.support.wordpress.com/videos/ For mp4 files hosted offsite on unsupported sites, you can try to use a service like this (http://embed.ly/) but I don’t think it will work well. More likely, you’ll have to sign up … Read more

How to develop an extension for a simple form post and post back? [closed]

I think the easiest way is adding the form via the Shortcode API. The code would look like this: function myform_handler( $atts ){ if (isset(@$_REQUEST[‘submit’])) { //Do something } else { $return = ‘<form action=”” method=”post”> <input type=”text” name=”myfield”> <input type=”submit” name=”submit> </form>’; } return $return; } add_shortcode( ‘myform’, ‘myform_handler’ ); Then you can add … Read more

WooCommerce comments_template Filter Not Firing

Okay, for anyone looking to include the WooCommerce review tab not on an actual single-product page here’s the secret sauce: In your template file, you need: global $withcomments; $withcomments = true; Then add a filter for the comments template: //add filter to use our custom review template add_filter(‘comments_template’,'{{YOUR_HELPER_FUNCTION}}’); /** * Hook function for using custom … Read more

Related posts with WP_Query

parent is your answer here. Every term have a parent value set in its parent property. This value is an integer value, and represent the term id of its parent term. All top level terms have a value of 0 which just simply means it is a top level term First we need to build … Read more

Only show sub-category

You can make use of the get_the_categories filter to remove the parent categories from the list. the_category() uses get_the_category_list() which in turn uses get_the_category() The idea is to check the categories returned against an array of parent ids and then removing those categories from the list. You can try the following (Requires PHP 5.3+) add_filter( … Read more

Moving a WordPress website from one server to another

Yes you can. Check out this article from the Codex. If you will be using a new domain the chapter is named Changing Your Domain Name and URLs; if you won’t use a new domain name use Keeping Your Domain Name and URLs. Edit: You must use the entire wp-content folder and not only the … Read more

Notification When Post Approved

You can use publish_post action hook for notifying post author. function wpcs_author_notification( $post_id ) { $post = get_post( $post_id ); $author = get_userdata( $post->post_author ); $message = “Hi ” . $author->display_name . “, Your post, ” . $post->post_title . ” has just been published at ” . get_permalink( $post_id ); wp_mail( $author->user_email, “Your article is … Read more

changed front-page template gives 500 error

It seems like you might have done some syntax error etc please add these lines to wp-config.php to check error If you have backup of your previous file, restore it to check error if any are there. error_reporting(E_ALL); ini_set(‘display_errors’, 1); define( ‘WP_DEBUG’, true); 500 errors can frequently occur with incorrectly configured rewrite rules contained in … Read more