Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi, @joyryde. It looks like the problem here is that the theme includes (and relies upon) post format support, but the plugin doesn’t actually enable post format support for its custom post type (and thus, the theme can’t find a template part to load).

    There’s also an issue in that the theme depends on either post or page being added automatically as a class on each post, but the Reviews aren’t getting either of those classes assigned to them. (That’s also what’s causing the problem with the reviews on your search results page.)

    So, since you’re already using a Child Theme here, try adding the following code to its functions.php file:

    add_post_type_support( 'grfwp-review', 'post-formats', 11 );
    
    // Add post class to Reviews for styling
    add_filter('post_class', 'reviews_post_class');
    
    function reviews_post_class($classes) {
    	if ( 'grfwp-review' == get_post_type() ) {
    		$classes[] .= 'post';
      }
      return $classes;
    }

    and then see if your review posts start to look a little better after that’s done.

    Thread Starter joyryde

    (@joyryde)

    WOW! You are AMAZING!!

    Thank you!!!

    That worked perfectly!

    https://www.miamirealestateguy.com/review/wow-get-lucky-pick-stavros/

    @joyryde, I’m glad it worked for you! You’re welcome!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to make posts that are created by a plugin look like the theme posts?’ is closed to new replies.