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
- Genesis – Customize search form
- How to insert PHP code in a WordPress Post
- Inserting Gravity Form checkbox values into Advanced Custom Fields [closed]
- 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?
- 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
- Implement a multi-value input field where the number of entries is not limited
- Select dropdown not showing selected value php
- 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
- Custom Form Processing Issue
- Custom profile field with birthday. Troubles with
- 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
- Custom search results page not working with empty search
- Modify HTML structure of fields in woocommerce checkout form
- Post + form + action + results on the same page
- Ajax call return 404
- how to save selected option in variable for rest api category filter
- Input data from email form not going to JSON file
- Display parent and child taxonomies in separate drop down select fields
- Styling my own password protected page, how to deal with wrong password?
- Search Query: how to construct a search string from two select elements?
- Login to wordpress by clicking a link and specifying usernaname and password in url
- Databases – Submitting data from inputs to database [closed]
- How to show a ‘correct’ message after submit a form?
- db converts decimal number wrong
- WordPress admin-ajax.php 400 bad request
- Ajax contact form return 0
- “operation successful” message
- Search WordPress using static html page
- How to put a form with php code into a variable or shortcode?
- WordPress shortcode returns the data before
- Shortcode to embed Edit Account form not working
- Form Submission Not Working In Custom Theme
- Capture form data in one function and use it in another function (same file)
- How to display success message correctly and delete it when the page is refreshed
- Using admin-post.php for admin form but it directs me to admin-post.php white screen
- Submitting a form, using Ajax, to run a SQL Select query based on user input from the form
- form built dynamically with php, not submitting
- Save the value of a wp_dropdown_pages
- Search only working on front page (index) , not working on other pages
- form $_post action value gets truncated after it passes through two forms
- Pass important values server-side when processing form
- WPDB secure custom form
- Adding attribute to the post.php form tag in wp-admin
- How to make blog post entries appear as input form instead of just text?
- Front end file upload returning wrong attachment url
- WordPressUser Submission Form
- go to home page when i select default in select-box
- Page Options Saving But Not Updating In Backend
- Testing a Form’s Zipcode Field with Regular Expressions to Determine WordPress Page Behaviour
- Cascading dropdown select search based on Parent Page & Child Page
- HTML Form Question
- How to make a pagination with dropdown selection?
- I want it to detect the duplicate comment and give a warning on the same page
- Updating user meta adds string count to value?
- PHP multiple forms, same page, isset($_POST[]) not working?
- “Class Not Found” in HTML Form Target PHP File that contains the class
- How to create a widget with a populated dropdown?
- Store user form submitted information in post type
- Implement jQuery Smart wizard
- Javascript / PHP – closing the loop
- How do I stop my form from adding code to current page URL instead of re-directing. Been stuck for days
- Updating the database after parsing CSV document
- Creating wordpress user registration form
- If input field has value Require another field – PHP
- PHP drop down menu for my get_category child of
- dropdown with no submit
- Submitting my form to the database and then redirecting to payment site
- Passing link parameter values to form
- Processing forms with php to wordpress database
- Post from front end form to post_meta
- Accessing values entered via form – try again
- Nonce fail after second submit attempt
- Styling admin page rows in order of importance (checkboxes)
- Page 2+ of taxonomy archives does not recognise sort-order from dropdown
- Save data of select list after clicking save
- Using Nonce for my Form
- Dropdown Menu for Query_Posts
- Force string into signup form
- Data inserted in database, but ajax calls error function
- upload images on front by user using form
- How to pass username into form that sends data to database
- Open WordPress Page from selected option dropdown
- Custom form that stores data in mysql database
- Putting form result in my database
- Bulk data save in custom table