• I want to insert a form on my page. I heave created a custom template to do this. Also, I want to add I am moving this from my clients current, non-wordpress, web page to a WordPress website. It is for job listings. The initial view is a list of job postings. Each posting can be edited or deleted. There is also an add function. I get the main page to show URL(/job-entry/) but when I click to add or update which calls jobs.php I get a page not found URL(/job-entry/jobs.php). How can I get the page call (action=”jobs.php”) to redirect or direct to itself (/job-entry/)?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • AddWeb Solution

    (@addweb-solution-pvt-ltd)

    @miowebdesigns,

    It seems the action attribute of your Edit button Form is set with “jobs.php”. Just edit your template file where you wrote Edit button form & replace its action with below code

    get_permalink( get_page_by_path( 'job-entry' ) )

    So the edito button form will be look like below

    Before:
    <form method="POST" action="jobs.php">

    After:
    <form method="POST" action="<?php echo get_permalink( get_page_by_path( 'job-entry' ) ); ?>">

    So, When you view the generated page source it would be replaced like:

    <form method="POST" action="https://datapathsearch.com/mc/job-entry">

    Hope this will helps you

    Thanks!

    Thread Starter miowebdesigns

    (@miowebdesigns)

    Thank you

    AddWeb Solution

    (@addweb-solution-pvt-ltd)

    @miowebdesigns, Good to see that our provided solution worked for you. Can you please mark as “Accepted Solution” to make my put in efforts worth. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘adding custom form to page’ is closed to new replies.