Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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, 3 months ago by tavomenas.
    #1008722

    Hey 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,
    Rikard

    #1009105

    Hello 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.
    custom fields activation on regular post-picture

    Which I can see down the post editor
    Custom fields-picture

    I would like to be able to activate and see these custom fields in “portfolio post” editor, as there are no now.
    No custom fields in portfolio post editor-picture

    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, 3 months ago by tavomenas.
    #1009364

    Hi,

    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,
    Peter

    #1009662

    Thank you Dude! That’s exactly what I needed.

    #1009721

    Hi,

    I’m glad you got this resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Custom fields in portfolio post’ is closed to new replies.