• Resolved jack.koppa

    (@jackkoppa)


    Hi there. First of all, fantastic plugin, with an incredible amount of customization built in to the admin panel. Thanks so much. I have a decent understanding of PHP & WordPress, and I’m trying to add a few custom fields to the basic Portfolio page (a “Position” and “Company” field, so that each project can have those fields – I will then use these fields in the PHP template, to display them both on the element and the popup). I have gotten the fields to show up on the admin panel, by editing admin > portfolios_func.php, as well as admin > portfolios_view.php. These fields show up on the admin panel; however, the data I’m entering into them is not saving, and calling this data in Front_End > portfolio_front_end_view.php is not working.

    Could you possibly provide info on how to edit admin > portfolios_func.php to get these custom fields to save their data? I can provide screenshots by email. Thanks so much for your time, with a very specific question.

    https://www.ads-software.com/plugins/portfolio-gallery/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter jack.koppa

    (@jackkoppa)

    After spending a bit more time with the plugin, I believe the declaring of custom fields needs to use both portfolio-gallery.php and admin > portfolios_func.php. I’ve added my new fields/columns to the $sql_huge_itportfolio_portfolios table, but cannot figure out where to call those in admin > portfolios_func.php. Thanks for any help, sorry if this is too specific, and please do feel free to email me instead – hello at jackkoppa dot com

    support-huge-it

    (@support-huge-it)

    Hello
    Dear yes it is very difficult, we even can not properly tell what’s wrong did you made. So I will try to explain
    Creat that new parametrs in Base. Those new data should be added in portfolios_view.php., and when you save they go in portfolios_func.php from where it goes into your created parameters in base. that’s all about save. You only need to take them from base and show where you want them to show.

    Thread Starter jack.koppa

    (@jackkoppa)

    Hi Huge IT,

    Thank you for the prompt response – that was helpful, especially for something that was so specific. I now understand that I need to edit the base file (portfolio-gallery.php) to get the database tables to include my parameters. However, since the tables have already been created, even when the plugin is de-activated and re-activated, the CREATE TABLE IF NOT EXISTS command for the wp_huge_itportfolio_images table will not run. Since I cannot delete this table in my database to start over (having trouble accessing), do you have a code snippet I could use for adding a column to the wp_huge_itportfolio_images table?

    Thanks again for any help.

    Thread Starter jack.koppa

    (@jackkoppa)

    Figured it out! Was finally able to get access to the database, and manually deleted the created tables. That way, when I deleted and re-activated the plugin, with my new parameters in the portfolio-gallery.php file, it worked! I now have those parameters available for the template. Thanks for the help.

    support-huge-it

    (@support-huge-it)

    You are great developer) We glad that you figured it out, althogh it is not easy

    Hi Jack. I’am trying to do what you just described but found it much harder then I thought. Do you have any example code or tips on what to look for regarding this case?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Adding Custom Fields to Portfolio Page’ is closed to new replies.