Completely custom theming

Viewing 15 posts - 1 through 15 (of 37 total)

These forums are closed to new replies / tickets. Please open a support ticket from our new Support page.

  • Author
    Posts
  • #1596
    Simeon Griggs
    Participant

    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.

    #1601
    Merv Barrett
    Keymaster

    Yeah, 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.php

    and 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
    #1647
    Simeon Griggs
    Participant

    Thanks Merv, will take a look.

    #2080
    Simeon Griggs
    Participant

    Hey 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?

    #2081
    Merv Barrett
    Keymaster

    Hi 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.
    #2084
    Simeon Griggs
    Participant

    My bad … made a mistake too stupid to repeat. Working fine, thanks 🙂

    #2091
    Simeon Griggs
    Participant

    Hey so I got this template working but … what about all the others? I intend to customise pretty much every view.

    #2092
    Merv Barrett
    Keymaster

    Same process for the archive template. Which other views are you wanting to tweak?

    #2348
    Simeon Griggs
    Participant

    New 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

    #2350
    Merv Barrett
    Keymaster

    Hi 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”]

    #2352
    Simeon Griggs
    Participant

    Okay 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?

    #2355
    Simeon Griggs
    Participant

    …actually the pagination is just showing behind everything else. I’ll just need to customise it.

    #2422
    Simeon Griggs
    Participant

    Me 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.

    #2423
    Merv Barrett
    Keymaster

    Your 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.

    #2424
    Simeon Griggs
    Participant

    Ah 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">

These forums are closed to new replies / tickets. Please open a support ticket from our new Support page.

Viewing 15 posts - 1 through 15 (of 37 total)
  • The forum ‘Theme Support’ is closed to new topics and replies.