• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

nkleekamp

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • June 4, 2015 at 5:51 am in reply to: add_image_size and image file generation #154834
    nkleekamp
    Member

    OK, I'm marking this as resolved. For posterity, add_image_size() does generate individual files if you have the proper dependencies installed. My issue was related to not having php5-imagick installed. Thanks again!

    June 4, 2015 at 5:24 am in reply to: add_image_size and image file generation #154829
    nkleekamp
    Member

    Thanks coralseait for the reply!

    I'm doing that with the Regenerate Thumbnails plugin, but I'm only seeing the original image size, along with those defined in Settings > Media. When I upload new images, I'm not seeing the sizes that I have defined in my functions file either.

    Hence my question, is the add_image_sizes() function supposed to generate individual image files at the sizes defined in the functions file, or does it just add the width/height attributes to the tag?

    January 20, 2015 at 10:10 pm in reply to: Different content types on shared category archive page #138158
    nkleekamp
    Member

    I found the answer on StackExchange and expanded it with a little more info from the Codex.

    For anyone else that might need it, here was my solution.

    //* Include Custom Post Types in author, category, and tag archive page
    function __set_cpt_for_archives( &$query ) {
    	$post_types = array( 'post', 'portfolio', 'publication' );
    	$archive_types = array( 'is_author', 'is_tag', 'is_category' );
    
    	foreach ( $archive_types as $key => $val ) {
    		if ( $query->$val ) {
    			$query->set( 'post_type', $post_types );
    			remove_action( 'pre_get_posts', '__set_cpt_for_archives' );
    		}
    	}
    }
    
    add_action( 'pre_get_posts', '__set_cpt_for_archives' );
    
  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble