Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter garciaporto

    (@garciaporto)

    When WP shows categories, uses the category.php template. I don’t know if I can rename the template to show only categories from a custom post type, what I do know is if I rename the template as category-{category-ID}.php it can show a specific template for that category, but it isn’t what I need.

    What I need is to show categories from a specific post type, the template to show it may vary depending on the post type.

    If you know a way to accomplish this task, let me know. I’m stuck at this point

    Thread Starter garciaporto

    (@garciaporto)

    Hi Joy, thank you for take the time to answer me.

    I have been thinking a way to solve this and I noticed if I could get the taxonomy of the post and show a template depending on this value could solve the problem. But my knowledge about hooks doesn’t go that far and don’t know how to ask for what I need.

    I don’t know if this a right way to solve it, but it’s what I came with. If you know a better way, I’m here reading.

    This is the idea:

    if('kitchens' == get_post_type()):
        get_template_part( 'cat-kitchen' );
      elseif('projects' == get_post_type()):
        get_template_part( 'cat-projects' );
      elseif('outlet' == get_post_type()):
        get_template_part( 'cat-outlet' );
      else:
        get_template_part( 'cat-blog' );
      endif;

    Hi, I am having the same problem. I have done several installations from scratch, works for a few days and the problem comes again.

    This is the shortcode I usually use:

    [grw place_id=”********” pagination=”5″ text_size=”-1″ refresh_reviews=true lazy_load_img=true reduce_avatars_size=true open_link=true nofollow_link=true language=”es”]

    Even selecting a diferent language from english keeps overwriting this parameter.

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