WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Max Image Size Control] custom sizes (3 posts)

  1. triggame
    Member
    Posted 4 years ago #

    Hi Hiroaki.
    I really love your plugin so much.

    One question. How do I distinguish between say "Setting0" and "Setting1". So for example I have a set of custom sizes for all posts and then under "setting 1" I have a custom size for only a certain category. ...but then I end up with two "custom0" sizes.
    ...in my template file I normally call the size like this:
    <?php attachment_toolbox('custom0'); ?>
    through a function made by http://digwp.com/2009/08/awesome-image-attachment-recipes-for-wordpress/

    I need to understand how to specify in my template which custom0 to use.

  2. Hiroaki Miyashita
    Member
    Posted 4 years ago #

    Hi John,
    If you check Apply to every post in Setting #0, the following settings will be ignored, because the first acceptable setting to the post is applied. So if you need to set custom sizes for all posts, the setting must be the end of the settings. If you also want to set custom sizes for a certain category, you need to set custom sizes for both all posts and the category. Some thing like this:

    Setting #0 (For category):
    custom0:100px
    custom1:150px
    custom2:200px <– this is only for this category

    Setting #1 (For all):
    custom0:100px
    custom1:150px

    I hope this will work for you. Thanks.

  3. triggame
    Member
    Posted 4 years ago #

    Thanks so much Hiroaki!!! I understand now.

Topic Closed

This topic has been closed to new replies.

About this Topic