Easy Property Listings WordPress Real Estate Plugin › Forums › Theme Support › Completely custom theming
Tagged: bug, feature request, location profile, reaxml
- This topic has 36 replies, 2 voices, and was last updated 9 years, 4 months ago by Merv Barrett.
These forums are closed to new replies / tickets. Please open a support ticket from our new Support page.
-
AuthorPosts
-
September 3, 2014 at 1:35 pm #1596Simeon GriggsParticipant
Hey Merv,
I’m a website developer and I intend to create an entirely custom theme. But reading your documentation it seems like the intended use of EPL is to just have the default layout inserted into a pre-built theme.
Is there a ‘safe way’ of editing files like content-listing-single.php and others inside the lib/templates/content folder? Ideally I’d like to drag those files into my theme folder and have the plugin search for them there first instead of using the defaults.
Thanks.
September 3, 2014 at 3:19 pm #1601Merv BarrettKeymasterYeah, I built it first for developers like you and me who know how to code correctly.
That is planned, but not implemented we created the Listing Templates extension to add different views.
But as you are a coder, all you need to do is create your own tempalate and use the action to replace the default template.
EG
1. copy the content-listing-single.php into your theme, give it another name.I’ve created the instructions here as the syntax highlighter does not work in the forum
http://easypropertylistings.com.au/docs/create-custom-theme-templates-using-included-hooks/
The core will replace the default template with the one registered to the epl_single_template action hook.
* The variables above are only needed if you want to provide options for the different display settings from Dashboard > Easy Property Listings > Display
//////
However just noticed a issue with the core and not using our template function. Perhaps you can assist with a solution?Line 30… the core is looking for a registered action && a setting other than 0…
https://github.com/easypropertylistings/Easy-Property-Listings/blob/master/lib/templates/templates.phpand again line 108 for the archive template
//////Let me know how you go
- This reply was modified 9 years, 7 months ago by Merv Barrett.
- This reply was modified 9 years, 7 months ago by Merv Barrett. Reason: Syntax highligher does not work in forum
September 4, 2014 at 6:31 am #1647Simeon GriggsParticipantThanks Merv, will take a look.
September 17, 2014 at 1:14 pm #2080Simeon GriggsParticipantHey Merv, so are you saying you weren’t actually able to get this to work? I’m a front end dev, so can’t help you with PHP unfortunately!
I’ve tried what you’ve suggested above but it doesn’t seem to work. Not sure if I’m doing something wrong or if your suggestion above wasn’t actually tested?
September 17, 2014 at 1:26 pm #2081Merv BarrettKeymasterHi Simeon, it works correctly check here for updated php, the apostrophe was incorrect in the php example.
http://easypropertylistings.com.au/docs/create-custom-theme-templates-using-included-hooks/
This works with the public release of Easy Property Listings v1.2.
See here for more info.
http://easypropertylistings.com.au/support/topic/hooks-for-shortcodes/
- This reply was modified 9 years, 7 months ago by Merv Barrett.
September 17, 2014 at 1:41 pm #2084Simeon GriggsParticipantMy bad … made a mistake too stupid to repeat. Working fine, thanks 🙂
September 18, 2014 at 1:10 pm #2091Simeon GriggsParticipantHey so I got this template working but … what about all the others? I intend to customise pretty much every view.
September 18, 2014 at 2:08 pm #2092Merv BarrettKeymasterSame process for the archive template. Which other views are you wanting to tweak?
October 9, 2014 at 9:56 am #2348Simeon GriggsParticipantNew question… My website.com/property archive is showing properties for sale, and sold. How can I separate these into two different pages?
Preferably website.com/property and website.com/sold
October 9, 2014 at 10:07 am #2350Merv BarrettKeymasterHi Simeon
This is the default behaviour of WordPress posts. The property, rentals etc are posts.
As usual with WordPress there are many ways to achieve the same result. The easiest would be to create a page eg “Property for Sale” and use the [listing] shortcode.
In your case insert this on that new page
[listing post_type=”property” status=”current”]
October 9, 2014 at 10:14 am #2352Simeon GriggsParticipantOkay that makes sense.
But now the short code I’ve inserted on a page is only showing 10 posts, how do I show all and paginate them?
October 9, 2014 at 11:09 am #2355Simeon GriggsParticipant…actually the pagination is just showing behind everything else. I’ll just need to customise it.
October 15, 2014 at 11:24 am #2422Simeon GriggsParticipantMe again!
Is there an issue with pagination when conducting a search?
If I go to the website.com.au/property/ page pagination works fine.
If I conduct a search, pagination links to website.com.au/page/2 — which directs to a completely different post.
If you don’t mind talking over email I can send you a link direct to what I’m working on. Thanks.
October 15, 2014 at 12:07 pm #2423Merv BarrettKeymasterYour pagination code needs to be compatible with your theme. Edit your archive-listing.php and add the necessary/change the pagination functions. Review your themes archive.php so see what that is using for pagination.
Also a url would be helpful to see the code.
October 15, 2014 at 12:55 pm #2424Simeon GriggsParticipantAh ha. Got it, thanks.
Next question 🙂
WP All Import is throwing this error with every import: unrecognized date format on all posts.
I have the post date set to be {./@modTime}, here’s an example of my XML file’s first line.
<residential modTime="2014-10-04-01:14:50" status="current">
-
AuthorPosts
These forums are closed to new replies / tickets. Please open a support ticket from our new Support page.
- The forum ‘Theme Support’ is closed to new topics and replies.