Adding Custom Information to a wordpress page
-
I am trying to find a way to add a calendar to a page that changes for each customer file. This is on a rental property site and the calendar show availability. See working example here. https://thevillagesideas.com/rentals/a-rental-in-the-villages-florida/
The code that shows the calendar looks like this..
<script type=”text/javascript” src=”//www.availabilitycalendar.com/embed-js/eedyWfd9i9d8yN7te1gz/en-0-0-1-1-0-0-0-0-0/”></script>
I would like to make this a PHP function with a custom variable used to supply the one piece of information that changes which is the file identifier (eedyWfd9i9d8yN7te1gz) from the example above.
1. I need a way to store the variable, eedyWfd9i9d8yN7te1gz (from above)
2. I need the PH code to retrieve the variable, insert it in the code above (<script type=”text/javascript” src=”//www.availabilitycalendar.com/embed-js/eedyWfd9i9d8yN7te1gz/en-0-0-1-1-0-0-0-0-0/”></script>)
3. Display the calendar at the top of the content page.
Again the calendar variable changes for each property listed in the database.
Any help would be appreciated.
- The topic ‘Adding Custom Information to a wordpress page’ is closed to new replies.