About this topic

  • Posted by ddart 1 year ago. There are 4 posts. The latest reply is from byron.
  • This topic is not resolved
  1. I want to let users to choose the category you to upload your picture! But I can choose only those that I let them!
    My question is how to do this?
    Category Drop Down see all categories.

  2. Hi ddart,

    Categories in PhotoSmash are typically on useful when you PhotoSmash Extend and are creating New Posts on the upload. And then the categories are used for the posts.

    If that is what you're doing, then you can use this in your shortcode: post_cats='1,3,4,5,7,8' (or whatever your Category IDs are.

    If you're not using Extend, you can use tags with a dropdown, but you'd need to create a custom form....here's the tag for the custom form for the tag dropdown:

    [tag_dropdown tags='my,tags,go,here' selected='my']

    Hope that helps,
    Byron

  3. Do I have PhotoSmash Extend. Something similar now gave me the tags, but I want similar categories.
    example-
    [post_cats_dropdown='my,cats,pic,here' selected='my']

    Thanks !

  4. Yes, you do have Extend. So you should be able to use the categories if you are creating new posts on upload. The categories only affect Posts, not images themselves.

    Here's what you need to show the category box:

    post_cat_show='Categories'

    Here's a list of other things you can use in your shortcode that are tag or category related:

    cat_layout=layout_name // Give a prefix to be used with the first Category ID to determine what layout should be used...it will default back to the layout specified in create_post if Cat Layout is not found...e.g. cat_layout='postcat' ...it will look for a custom layout called postcat_## where ## is the id of the first category in the upload

    post_cat_child_of=### // Only include categories that are children of ## category

    post_cat_exclude='#,#,#' //category IDs to exclude

    post_cat_show='label name', // Supply this with a value that evaluates to true (e.g. something other than 0 or false or '') and it turns on the post categories selection box and is used as the LABEL for the field

    post_cat_depth=0 // 0 will show all levels. 1 shows only top level, 2 shows the top 2 levels, and so on.

    post_cats='#,#,#' // Supply this with category id's to set for new post (comma separated)...this doesn't let the user choose the categories, but forces the post to take the specified categories

    post_cat_selected=# //Enter a cat ID to be selected in the category box

    post_cat_single_select=true // make this 1 or true to turn off multi-select...by default Category selection is multi-select. Turning this on makes it single select

    Cheers,
    Byron

RSS feed for this topic