WP Residence Help WP Residence Help

  • WpEstate
  • How to Build Your Website
  • Video Tutorials
  • Client Support
  • API
Home / 24. Technical how to | Custom Code Required / Technical: change date format

Technical: change date format

3817 views 0
  • Change date format for Schedule a showing option

 

You need to edit js/ajaxcalls.js and at line 2770 http://prntscr.com/urswrs you have dateFormat : “yy-mm-dd”,
Replace the “yy-mm-dd” with your date format

 


E3REudS

For the attached image – go into membership.php,  function wpestate_get_pack_data_for_user_top at line 170. In that function look for

$expired_date = date(‘Y-m-d’,$expired_date); at line 212

The front_end_submission.php is in templates folder .

Also look for similar instruction in wp-content/plugins/wpresidence-core/post-types/memberhisp.php file.


oldO21r

Go into libs/stats.php and you have there date(‘m-d-Y’, time() ) for 2 times at line 15 and 94

Change the date format by replacing the string ‘m-d-Y’

This change will apply only for new dates.


  • Change date format in blog post unit

blog-unit-Residence

To change date format must be changed date format  (‘M d, Y’) in below PHP files:

wpresidence\templates\blog_unit.php

wpresidence\templates\blog_unit2.php


  • Change date format in date custom fields

date-custom-field-WPResidence

To change date format must be changed date format  yy-dd-mm in libs/help_functions.php file.

Screenshot:

date-fomat-WPresidence

This change will apply only for new dates. For old dates must be edited all properties date custom fields and then saved with new date format.

24. Technical how to | Custom Code Required

Related Articles

  • Property list filter customization
  • Technical – How to Change the Minimum Image Dimensions for Property Uploads in WPResidence
  • Introduction to WPResidence Header Customization
  • Understanding WPResidence Header Types: An Overview

WP Residence Documentation

  • 01. Getting Started
    • How to Get Support
    • Get your buyer license code.
    • Use SSL / https
    • Server / Theme Requirements
  • 02. Installation & Setup
  • 03. Installation FAQ
  • 06. Search & Filtering
    • Advanced Search Display Settings
    • Advanced Search Form
    • Geolocation Search for Half Map
    • Save Search Theme Options
    • Advanced Search Colors
  • 09. Agent, Agency & Developers
  • 08. Property Pages & Layouts
  • 07. Property Lists, Categories & Archive
  • 13. WPResidence Elementor Studio
  • 10. Blog Posts & Blog List
  • 11. Shortcodes
    • Contact Form
    • Featured Agency/Developer
    • Membership Packages
    • Testimonials
    • Google Map with Property Marker
    • Listings per Agent, Agency or Developer
    • Display Categories
    • Agent List
    • Recent Items Slider
    • Recent items
    • List Properties or Articles by ID
    • Featured Agent
    • Featured Article
    • Featured Property
    • Login & Register Form
    • Icon Content Box Shortcode
  • 12. Widgets
  • 04. Theme Options & Global Settings
    • General Settings
    • User Types Settings
    • Appearance
    • Logos & Favicon
    • Header
    • Footer Style and Colors
    • Price & Currency
    • Property Custom Fields
    • Features & Amenities
    • Listing Labels
    • Theme Slider
    • Permalinks
    • Splash Page
    • Social & Contact
    • Map Settings
    • Pin Management
    • How read from file works
    • General Design Settings
    • Custom Colors Settings
    • Header Design & Colors
    • Mobile Menu Colors
    • User Dashboard Colors
    • Print PDF Design
    • Property, Agent, Blog Lists Design Settings
    • Sidebar Widget Design
    • Font management
    • How to add custom CSS
    • Custom Property Card Unit – Beta version
    • Email Management
    • Import & Export theme options
    • reCaptcha settings
    • YELP API Integration
    • iHomefinder Optima Express IDX
    • MEMBERSHIP & PAYMENT Settings
    • Property Submission Page
    • PayPal Setup
    • Stripe Setup
    • Wire Transfer Payment Method
  • 20. Translations & Languages
  • 26. FAQ
  • 10. Pages
  • 11. Header
  • 12. Footer
  • 05. Maps & Location Settings
  • 18. Payments & Monetization
  • Plugins
    • 19. Included Plugins
    • 22. Third Party Plugins – IDX Compatibility
    • 21. Third-Party Plugins – Multi-Language
    • 23. Third party Plugins – Other
  • Technical
    • 24. Technical how to | Custom Code Required
    • 25. Technical: Child Theme

Join Us On

Powered by WP Estate - All Rights Reserved
  • WpEstate
  • How to Build Your Website
  • Video Tutorials
  • Client Support
  • API