• Resolved margm

    (@margm)


    I am using a standard Pods form to create new pages from the front end for a custom post type. This works well.

    How can I use a Pods form to edit the pages? So far I have only managed to create a form dedicated to a specific page (by entering a slug at design time).

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @margm

    If you pass the post ID in the form it should load the existing data.

    Cheers, Jory

    Thread Starter margm

    (@margm)

    Hi Jody thanks for this. It’s good to know that it can be done but I am very new to Pods and and this is where I am stuck.

    I can see the box in the right sidebar when editing the block that says SLUG OR ID (use this to enable the editing of an item) and this is where I can enter the slug or post id. But this only gives me a form that can edit one particular post/page. How do I pass the post id dynamically to the form at run time?

    Thanks

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @margm

    You could add the parameter use_current as well. This will load the Pod for the current page.

    Alternatively you might try some magic tags: https://docs.pods.io/displaying-pods/magic-tags/special-magic-tags/

    But IMO it’s always best to go PHP when working with forms. It will allow you much more control.

    Cheers, Jory

    Thread Starter margm

    (@margm)

    Many thanks for the tips Rory. I’ve got something working with PHP – my first ever ??

    Plugin Author Jory Hogeveen

    (@keraweb)

    Good to hear!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Using standard Pods form to edit pages?’ is closed to new replies.