Help understanding dynamic endpoints based on where a shortcode is used
Help understanding dynamic endpoints based on where a shortcode is used
Help understanding dynamic endpoints based on where a shortcode is used
Custom shortcode skips every 2nd shortcode
ACF repeater + group shortcode
Creating New Dynamic Fields for a Certificate (Number Generation, Code Referencing, and more)
Shortcode to show the terms from the current post (custom post type & custom taxonomy)
Font size of HTML content
You haven’t assign for $atts. So suprised that the poster can work correctly. function video_custom($atts) { extract(shortcode_atts(array( ‘option’ => ”, ‘poster’ => ”, ‘src’ => ”, ‘type’ => ”, ), $atts)); return ‘<div class=”d-flex justify-content-center”><video class=”wp-video” ‘ . $option . ‘ poster=”‘ . $poster . ‘”><source src=”‘ . $src . ‘” type=”video/’ . $type . … Read more
get_the_post_thumbnail() returns the entire img tag, not just the image URL. global $post; return get_the_post_thumbnail( $post->ID ); You can also use function wp_get_attachment_url() or wp_get_attachment_thumb_url() to get image URL and insert it into the img tag. global $post; $thumbnail_id = get_post_thumbnail_id( $post->ID ); if ( false === $thumbnail_id ) return ”; $img_url = wp_get_attachment_url( $thumbnail_id … Read more
get_queried_object_id / short code returning blank
You can’t, Dynamix WP theme uses piecemaker.swf to run its slide show and by looking at the documentation you can see that they don’t have a none loop setting. your best bet is to try to replace it with a different flash viewer that has a none loop option like CU3ER image rotator which i … Read more