ok so i figured it out… i changed the select to
<select onChange="this.form.submit()" name="page_id"{$id} class="$class">
so that name passed in the url gets changed to ?page_id which i want since that is the format i am using (default wordpress format), and then i called my page_by_title function (btw i had to change the name of the get_page_by_title since it was the wp api name and it would otherwise just go into an infinite recursive loop XD) int the options like so
<option value="".page_by_title($display).""$_selected>" . esc_html($display) . "</option>
the value passed was the page id… i believe the form must use the get method for this to work
Related Posts:
- Contact form with dynamic dropdown and filter
- How to fix ‘Notice: Undefined index:’ in PHP form action
- How to stop form resubmission on page refresh
- How to correctly submit a search form and display the result in an independent page
- add_filter the_content str_replace after shortcode
- Genesis – Customize search form
- Metabox repeating fields – radio buttons not saving correctly
- How to exclude pages from the search results
- How to insert PHP code in a WordPress Post
- Inserting Gravity Form checkbox values into Advanced Custom Fields [closed]
- How to handle a custom form in wordpress to submit to another page?
- Has anyone tried putting PHP ActiveRecord on WordPress?
- Drop down+sort blog posts date added/most popular
- Handling error states with admin_post
- Save selected item from dropdown menu in a meta box as a metadata value for a custom post type
- Creating wordpress user registration form
- How do I create a drop down menu in a widget?
- Creating a WordPress form with a PHP script and default header
- On update to 3.04 site started recording accents as “á” and “á”, what to do?
- Second select list values are not saved after clicking update
- submit the form to same page
- Replacing the NavWalker dropdown element
- Submitting form via admin-post.php and handling errors
- Implement a multi-value input field where the number of entries is not limited
- Select dropdown not showing selected value php
- Custom WordPress+PHP+MYSQL+AJAX form, submit event not captured by Javascript, but does POST data to the DB
- Passing POST data from one WP post to another
- Archive dropdown styling not applied
- Processing a subscription form with POST method?
- How to group 2 radio buttons in a widget?
- Ajax form submit within a Post Metabox
- How to create and work with custom data / tables (i.e., for arbitrary data)?
- Upload Image in a WordPress page using PHP
- Using Multiple Submit buttons to trigger customised php functions
- Get Admin Email Address From External PHP page
- Adding Custom Forms
- How do I let users upload files to a chosen location?
- woocommerce registration form with klaviyo(don’t work with current user)
- How to make drop down post title
- How to create a form and display its content as table in admin panel?
- Custom Form Processing Issue
- My form action url is being prepended with a directory that does not exists
- Custom profile field with birthday. Troubles with
- Filter Select results based on selection
- How can I reuse the code to capture a param in a URL and place in a value in a hidden form?
- WooCommerce/WordPress: how hide entire table form after submit (Admin Dashboard)?
- How to store data from multiple forms using ajax and php
- How to use $query->set with post__in?
- Ajax loaded form replaces form action with Ajax url
- prevent default not stopping page refresh. Passing form information to and from php with ajax in a wordpress site
- How to limit the number of forgot password reset attempts in WordPress?
- Custom search results page not working with empty search
- Modify HTML structure of fields in woocommerce checkout form
- How to pick the default selected value in wordpress dropdown?
- Post + form + action + results on the same page
- Ajax call return 404
- How to pre populate a form field with a link of a current user’s author profile?
- how to save selected option in variable for rest api category filter
- Why Won’t My Inputs in a form with a Get method work together?
- Input data from email form not going to JSON file
- custom field meta-box with dropdown/autocomplete
- Page 2+ of taxonomy archives does not recognise sort-order from dropdown
- Save data of select list after clicking save
- Headers for Contact Form are wrong
- Display default WordPress login/registration form into a modal window
- Using Nonce for my Form
- Trouble using wordpress functions in a pop-up modal form
- Dropdown Menu for Query_Posts
- Force string into signup form
- custom contact form no longer working (because of 3.2?)
- Data inserted in database, but ajax calls error function
- upload images on front by user using form
- Correct Syntax for uploading files to custom directory in WordPress
- ajax form function error
- How to pass username into form that sends data to database
- HOW TO Insert Existing PHP Code to WOrdPress
- Send foreach $_post method to contact form 7 [closed]
- php inside HTML via shortcode? [closed]
- Open WordPress Page from selected option dropdown
- Where to put include php file?
- Use HTML Form Data in PHP Function – WordPress Admin Page
- how to show selected options drop down menu values in attributes field in after saving post.php
- Redirect loop upon installation of my plugin
- Field validation strlen works in php7.4 fails 8.1 [closed]
- Custom form that stores data in mysql database
- Embed PHP script into WP – what is the best way
- Preventing script injections in HTML form
- Putting form result in my database
- Bulk data save in custom table
- Can’t insert into a database wordpress
- Help with commenting system
- Display endpoint’s return into a file (file_put_contents())
- How to create a form that display license key (and email it to user) after the user enter their email and 10 digit code?
- Quiz page template, checked attribute missing when option selected
- Send summary email from a form with wp_mail
- Validate a custom form with js and php
- Automatically populating a date parameter within a shortcode
- Custom PHP contact form issue
- Trouble getting wpdb to work – first time
- How can I process a form submission from an HTTP POST request?