echo do_shortcode for category
First of all, thank you for your plugin, it is really great…
Anyway I would like to ask a question:
My users have user meta field: user_cat_ID , which stores value of post category ID. They can only read this category or all posts they can create will have category (ID) set by user_cat_ID value.
Therefore I tried to do this by code inserted to Mage form or WordPress page, but it did not work:
$user_id = wp_get_current_user();
$user_cat = get_user_meta($user_id, user_cat_ID, true);
echo do_shortcode( ‘[text name="post_category" value=$user_cat type="hidden"]‘ );
I used Insert php plugin and echo do_shortcode on wordpress page, form appeared corectly on front end, but buttons did not work and I could not send post…On mage form php code did not work at all
Could you help me please ?
BTW – When I inseted form on page, CSS of theme was kept…It was great, because I do not like to use other than theme CSS for forms. Is there any way how to ignore Mage css style ?
Thank you, Peter
- The topic ‘echo do_shortcode for category’ is closed to new replies.