Tagged: Portfolio
-
AuthorPosts
-
September 11, 2018 at 10:52 pm #1008637
Hi,
I’ve created a front-end form on website where users insert some data (title, description, pictures, adress, etc). This data are being used to create a portfolio post saved as draft. The admin reviews the submitted data and uploads the portfolio post.On regular post editor on “screen settings” I can activate “custom fields”, pretty useful to collect the data from submission form.
Unfortunately there are no “custom fields” on portfolio post editor “screen settings”, is there a way to activate them?Thanks
- This topic was modified 6 years, 2 months ago by tavomenas.
September 12, 2018 at 6:30 am #1008722Hey tavomenas,
Please send us a temporary admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply. Are you adding the custom fields with a plugin?
Best regards,
RikardSeptember 12, 2018 at 10:50 pm #1009105Hello Rikard,
I’ve created few custom fields with AccessPress Anonymous Post plugin, but I also want to use already existing custom fields, like the one with metakey “user_submit_name”.
I put some screenshots, as my Enfold Theme is in Italian, with translation next to relevant fields.In regular post “screen option” I can activate custom fields.
Which I can see down the post editor
I would like to be able to activate and see these custom fields in “portfolio post” editor, as there are no now.
In custom fields I can see the data inserted by my registered user in a front-end form and I want to use them to edite the portfolio post before publishing it (insert name of author in one text box, price in another, etc.).
It would be perfect if the values of custom fields would go in the layout elements automatically, but on this forum I was explained I need to hire a developer for this, and it isn’t that important for now (but if you have any tip for that I would be grateful)- This reply was modified 6 years, 2 months ago by tavomenas.
September 13, 2018 at 12:47 pm #1009364Hi,
Please add this code to the child theme functions.php to activate post meta support for portfolio entries:
add_filter('avf_portfolio_cpt_args', 'avf_portfolio_cpt_args_mod'); function avf_portfolio_cpt_args_mod($args) { $args['supports'][] = 'custom-fields'; return $args; }
Best regards,
PeterSeptember 13, 2018 at 9:45 pm #1009662Thank you Dude! That’s exactly what I needed.
September 13, 2018 at 11:48 pm #1009721Hi,
I’m glad you got this resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Custom fields in portfolio post’ is closed to new replies.