Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Forum: Your WordPress
    In reply to: ZomNomz!
    Thread Starter zombiefred

    (@zombiefred)

    Specifically ‘Other than that, I can’t really see what to review that’s different from the original theme.’ I really have no idea what you’re trying to convey here.

    Forum: Your WordPress
    In reply to: ZomNomz!
    Thread Starter zombiefred

    (@zombiefred)

    I’m sorry, can you please be more descriptive. Like, as in explain it to me like I’m 5?

    Thread Starter zombiefred

    (@zombiefred)

    So here’s the deal: I kind of gave up on this plugin because I wasn’t really sure how to use it. I have no idea how to implement the_post_video() into my theme – perhaps it’d be best if you explained how to do that like I’m a 5 year old.

    Anyway, here’s an example of my issue: https://www.zomnomz.co/51/ with the featured video plugin activated with use of the shortcode [featured-video]

    Additionally, the video is not being used as a featured video/image on the homepage: https://www.zomnomz.co (scroll down to the third page).

    Like I said, I’m a 5 year old when it comes to this stuff.

    Any chance you can help me figure out where to paste?

    /**
      * Checks for images using a custom version of the WordPress 2.9+ get_the_post_thumbnail() function.
      * If an image is found, return it and the $post_thumbnail_id.  The WordPress function's other filters are
      * later added in the display_the_image() function.
      *
      */
     function imwb_interest_image_post_thumbnail( $args = array() ) {
    
        /* Check for a post image ID (set by WP as a custom field). */
        $post_tid = get_post_thumbnail_id( $args['post_id'] );
    
        /* If no post image ID is found, return false. */
        if ( empty( $post_tid ) )
        	return false;
    
        /* Apply filters on post_thumbnail_size because this is a default WP filter used with its image feature. */
        $size = apply_filters( 'post_thumbnail_size', $args['size'] );
    
        /* Get the attachment image source.  This should return an array. */
        $image = wp_get_attachment_image_src( $post_tid, $size );
    
        return $image[0];
     }

    Thanks!

    Thread Starter zombiefred

    (@zombiefred)

    Nevermind, I figured it out. It was my own fault.

Viewing 5 replies - 1 through 5 (of 5 total)