Title: Custom Page save function
Last modified: September 28, 2021

---

# Custom Page save function

 *  [planbjz](https://wordpress.org/support/users/planbjz/)
 * (@planbjz)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/custom-page-save-function/)
 * Hello!
 * I created a custom page that displays real estate listings.
 * They open in another custom page that displays details about a single listing.
 * I want users to be able to save their favorite listings but each listing opens
   up in a dynamically created page called property. This page always has the same
   page or post id. Plugins designed for saving your favorite pages all seem to 
   base the information on the post id and not the actual page url.
 * Is there a way to allow users to save pages to a favorite list based on just 
   the page url? Sort of like a wishlist in woocommerce.
    -  This topic was modified 4 years, 7 months ago by [James Huff](https://wordpress.org/support/users/macmanx/).
      Reason: link moved to proper field
    -  This topic was modified 4 years, 7 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
      Reason: Moved to Fixing WordPress, this is not an Developing with WordPress
      topic
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcustom-page-save-function%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/custom-page-save-function/#post-14922247)
 * Each property has a unique “id=” query var in the URL, right? All that really
   needs to be saved is this ID. The URL itself never changes, so the ID can be 
   added to the normal URL. The “&wpf28382_5=” query var doesn’t seem to be necessary.
 * Whether the entire URL or just the ID, it can be saved somehow. If users are 
   required to be logged in, selected IDs could be saved in their user meta data.
   If not, favorites would need to be saved as cookie data. Of course users could
   simply bookmark their favorites in their browser, but having a mechanism within
   your site is still preferable.
 * It sounds like you’ve already searched for plugins without much success. Saving
   an URL query var to somewhere via custom code isn’t all that complicated, but
   if you’re not a coder it’s still beyond reach. You could hire a coder to help
   you with this. Qualified coders can be found through jobs.wordpress.net
 *  Thread Starter [planbjz](https://wordpress.org/support/users/planbjz/)
 * (@planbjz)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/custom-page-save-function/#post-15149128)
 * Hey [@bcworkz](https://wordpress.org/support/users/bcworkz/),
 * Thanks for the advice. I’m just now getting back to this part of the project.
 * I’ll look into saving the URL to the user meta data.
 * PlanB

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom Page save function’ is closed to new replies.

## Tags

 * [Saving](https://wordpress.org/support/topic-tag/saving/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [planbjz](https://wordpress.org/support/users/planbjz/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/custom-page-save-function/#post-15149128)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
