ok i have evolved from the original question.
i have 4 post forms here: hidden link
i have 4 as each go to a different ad category automatically using
add_action("cred_save_data", "my_save_data_action2",10,2);
function my_save_data_action2($post_id, $form_data)
{
// if a specific form
if ($form_data["id"]==24989)
{
$ad_cat_ids = array(1313); // replace your category ID
wp_set_object_terms( $post_id, $ad_cat_ids, 'ad_cat');
}
}
and 3 other same as this example(diff name so all work ok)
i have ad catergory lost and found (parent) and 4 sub ad catergories , lost,found,stolen,suspicious activity
the ads can be viewed here ,hidden link , you will notice the then ads image is not being resized too
321.25 x 237.09 as the rest of my site does , example here hidden link.
this image is set from the post forms featured image.
once you open the advert the image is ginormous , click any adverts in the examples above to see ...
so how can i get the thumbnail in the category the correct size(hidden link)
and how can i get the image the correct size once inside the advert ?
ideally i would be able to insert numerous images from the post forms so it created a gallery (like the rest of the site does)
is this do able? as it sits its not very pretty!! any solution will be awesome ,thankyou
kind regards martin