Winning Agent

Sales That Work

  • About
  • Store
  • Blog
  • The Stream
  • Forum
  • Jobs

AgentPress Listings Search Results changed after WordPress 4.0 Update

November 23, 2014 by Ginger Coolidge Leave a Comment

Share this post:

Share on TwitterShare on FacebookShare on PinterestShare on LinkedIn

search-results-for-agent-press-listings

So, you’re rocking along on your Winning Agent Pro or other Genesis child-themed web site, proud of yourself that you’ve kept everything up to date. Recently though, you have noticed something different — now when you use your AgentPress Listings search the output has a large shaded box at the top with the bolded letters “Search Results for:” You don’t recall this being there before; what happened? Well, I noticed it too and began my search with two questions:

1. What happened?
2. How do I fix it?

So, what happened?

Apparently, there were some WordPress core changes to wp_query after the latest WordPress 4.0 “Benny” update. Now I do not pretend to know all the inner-workings of wp_query, other than to know it’s the main engine that powers “the loop”, or the query string the code uses, that retrieves your posts to be displayed. After retrieving the posts, then WordPress decides which template will be used to display the page output. On the previous link you can read in detail about how templates are chosen if you desire, but the bottom line is unless your theme or another plugin supplies an archive-listings template for the listings custom post type, you are now defaulting to search.php in the Genesis core framework. This template includes the display of the shaded box “Search Results for:” at the top of the page. OK, mystery solved!

So, how do I fix it?

The solution is two fold: First, make sure you get the latest version (minimum version 1.2.2) of the AgentPress Listings plugin. Second, create an archive-listings template for your site to find and use instead of letting it default to search.php.

The Plugin

There was a little hiccup when version 1.2.2 of AgentPress Listings was released, so you wouldn’t have received an update notification on your Dashboard. To correct, you can delete the existing version, if it’s older, and replace it with the updated one – you won’t lose any of your listings.

The Template

This is easier than you think. Although, one cautionary note: If you’ve never edited or added a file to your site before, I recommend reading this post for some tips: Editing Your WordPress Site 101.

Let’s get started. Using a text editor, create a new file and copy/paste the following to your file:

Save the file with the exact filename:

archive-listing.php

Last step is to connect to your site via FTP and navigate to your wp-content/themes folder and to the folder of your active theme. Drop your shiny new file in the folder of your active theme. That’s it! Go to your site, search on your AgentPress Listings search widget, and now the shaded box should be gone.

More Great Reading

Share this post:

Share on TwitterShare on FacebookShare on PinterestShare on LinkedIn

Filed Under: Realtor Tech Tips, Web and Social Media Tagged With: Realtor Websites

About Ginger Coolidge

Tech junky, Genesis way of WordPress-ing, Dog rescue/lover, 2 cups coffee = verbal, I blog over at gingercoolidge.com

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Looking For Something?

Email Newsletter

Sign up to receive free updates from the Winning Agent blog.

Connect With Me

  • Facebook
  • LinkedIn
  • Pinterest
  • Twitter

StudioPress Real Estate WordPress Theme: Agent Focused Pro Theme

StudioPress Premium WordPress Themes: Winning Agent Pro Theme




Loan Types & Property Definitions

There are a lot of different types of mortgages, and there are a lot of different types of real estate property. Here is a list of the most common types of each. We’ve added some links to the most popular articles on the subject.

Read More

Real Estate and Mortgage Forum

We think getting many viewpoints to a particular question is important because it helps you to make better decisions. It’s so important that we have woven the Forum all throughout Winning Agent. We invite you to ask questions, make comments, and be part of the discussion.

Read More

Glossary of Real Estate Terms

Real estate and mortgage finance often times comes with its own unique language. If you work with it every day, it becomes 2nd nature, but most people don’t work with it every day. So we’ve created a glossary of mortgage and real estate terms.

Read More

Copyright © 2023 Winning Agent · Powered by the Genesis Framework · Contact Us
Become an Affiliate
This site uses affiliate links, but know that we only recommend products we personally use and enjoy!

 

Loading Comments...