Support » Fixing WordPress » Geo Directory Details page uses a template page?

  • The page linked to you is using a single type template page that Geo Directory’s support created without me knowing. I’ve ask them over and over again how the layout of this page is being used with the template instead of their default GD Details page, but no one seems to be able to tell me. I’ve been told that it’s possible they manually created a redirect but I’m not sure where to find that. I don’t want to use this template but I don’t want to delete it without knowing what’s going on first.

    Thank you in advance for any help

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    It’s difficult to say just from the resulting page. Because the body class includes “gd_place-template-default”, I think it could be a custom page template selected from the page attributes box on the page edit screen. Even if not there, it could still be a page template acting as such. Page template selection is managed by a post meta value. Manipulating that value can cause a template file to be used from almost anywhere. But editing the page will override that value unless it appears in the page attributes box.

    Another possibility is they specified the template through the “template_include” filter. Such a filter hook would require custom code added somewhere, perhaps your child theme’s functions.php file? Or added to the GD plugin somewhere?

    It’s likely a custom variant of their normal GD page. It’s hard to imagine support creating something very elaborate from scratch. You shouldn’t need to delete it in order to not use it. If you made a duplicate of that page’s content, but specified a different template be used, what ever override they employed should not carry over. If you like the results, use the new page. If it doesn’t work, you still have the original page.

    If you really need to find the responsible code, use a text search tool like grep that can recursively search sub-folders. Search all .php files in wp-content for the template’s filename. Such a search ought to root out the responsible code.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.