Proceed to the next video of the custom post type but remain on the same post

This seems to work for now.. Added onended=”onEndVideo()” to the video element like so. <?php $mrssfeed_url = get_post_meta(get_the_id(), ‘nowthisearth_media_url’, true);?> <video onended=”onEndVideo()” id=”nowthis-video” class=”nowthis-video” style=”” width=”1280″ height=”720″ autoplay=”true” controls> <source src=”<?php echo $mrssfeed_url ?>” type=”video/mp4″> Your browser does not support the video tag. </video> Then did this for the javascript.. function onEndVideo() { document.querySelector(“a.next-post”).click(); }

Show ACF field with link to ultimate member profile/WordPress user profile below the post (single post layout)

I believe that your syntax is wrong in the variables you set up in your foreach loop. Because you’re referencing an object and not an array, you need to use this format: $author_ID = $value->ID and… $value->display_name We also discovered that the foreach loop isn’t necessary, so I’m removing it from the answer. The other … Read more

How to print Array values of custom Fields Meta?

Based on the screenshot I assumed is var_dump of your $item The code should look like <?php $item = get_post_meta($post->ID, ‘occupationalCategory’, false); ?> <?php print_r( $item[‘occupationalCategory’][0] ); ?>; <?php print_r( $item[‘occupationalCategory’][1] ); ?> $item contains array, with a element which key is ‘occupationalCategory’, this element points to other array with two elements

Having Issue on Ordering CPT by Custom Field In Custom WP Query

Your query args are not quite correct. When you want to order by a custom field, you need to specify a meta_key argument, and set your orderby to the kind of ordering you need. For example: $args = array( ‘tax_query’ => array( array( ‘taxonomy’ => ‘topic’, ‘field’ => ‘slug’, ‘terms’ => ‘movie’, ), ), ‘post_type’ … Read more