-
is humor a valid category? Are you sure it’s valid slug? It should make the post in humor category automatically if so.
It is a valid category but it still doesn’t put posts in there by default.
<?php echo do_shortcode(‘
[userpro template=publish
publish_button_primary=Submit
post_meta=”the_source”
post_meta_labels=”Attribute a source?”
publish_field_order=”featured_image,title,the_source”
no_header=true
require_content=0
category=humor
taxonomy=categoryallowed_taxonomies=category ]’); ?>
Should any of those be in quotes or?
Try this:
[userpro template=publish category=”humor”]
humor is slug of valid category. Please try that shortcode.
Nope, does not place new posts into that category, it doesn’t assign any category at all.
<?php echo do_shortcode(‘
[userpro template=publish
publish_button_primary=Submit
post_meta=”the_source”
post_meta_labels=”Attribute a source?”
publish_field_order=”featured_image,title,the_source”
no_header=true
require_content=0
category=”humor”
taxonomy=category
]’); ?>It’s working on my test fine. Is humor a category in Normal categories?
Yup, humor is a normal category.
Latest version of WP and UP. I’ll try on a page template now instead of a php shortcode.
…
Put exactly what you wrote on a page via a shortcode, assigned a category and it ONLY went into the category I picked, not the humor category
[userpro template=publish category=”humor”]
The category you picked? When you use category and taxonomy it should not let you choose/pick any category?? Please correct me if I am wrong
I’ll do more tests in regard to this issue and resolve it (if required) in next update, apologies for you 🙂
Ok, got it working (kind of)
This does NOT work and does NOT assign category of humor to new posts.
<?php echo do_shortcode(‘
[userpro template=publish
publish_button_primary=Submit
post_meta=”the_source”
post_meta_labels=”Attribute a source?”
publish_field_order=”featured_image,title,the_source”
no_header=true
require_content=0
category=”humor” taxonomy=category
]’); ?>This DOES work and DOES assign category of humor to new posts.
<?php echo do_shortcode(‘
[userpro template=publish category=”humor” taxonomy=category]’); ?>Continuing testing to see what could be wrong.
I found what’s causing it!
It’s publish_field_order
This doesn’t work, I removed each parameter one by one to find what could be the cause until I go to publish_field_order.
<?php echo do_shortcode(‘
[userpro template=publish
publish_button_primary=Submit
post_meta=”the_source”
post_meta_labels=”Attribute a source?”
publish_field_order=”featured_image,title,the_source”
no_header=true
require_content=0
category=”humor” taxonomy=category
]’); ?>Wrote it like this:-
<?php echo do_shortcode(‘
[userpro template=publish
publish_button_primary=Submit
post_meta=”the_source”
post_meta_labels=”Attribute a source?”no_header=true
require_content=0
category=”humor” taxonomy=category
]’); ?>And it works!
I do however need to use the field order though, so that’s a problem.
You must be logged in to reply to this topic.