Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
Tagged: 8.1.7, cMap, css, get_query_var, permalink
- This topic has 17 replies, 3 voices, and was last updated 7 years, 11 months ago by
Heather DePriest.
-
AuthorPosts
-
02/17/2015 at 2:35 pm #319778
Heather DePriest
ParticipantHello, for some reason, after I updated my template to Cmaps, I am not able to use the Alphabetical sorting properly, it simply doesn’t sort alphabetically. Testing can be done here: http://www.prolotherapycollege.org/review/physicians/. Any idea what may be causing this?
02/17/2015 at 2:38 pm #319789Heather DePriest
ParticipantAlso, is it possible to change the text mouseover color of the Physicians name? For some reason I cannot figure out how to do this in the CSS… thank you in advance for your time.
02/17/2015 at 3:53 pm #319798Steven Zahm
Keymaster@ Heather
re: doesn’t sort alphabetically
I would need a temp admin account so I can investigate it further.re: Also, is it possible to change the text mouseover color of the Physicians name?
That would actually be set by the theme… the following CSS would override the theme:#cn-cmap h3 a:hover { color: blue; }
Hope that helps!
02/17/2015 at 4:38 pm #319810Heather DePriest
ParticipantThis reply has been marked as private.02/18/2015 at 1:14 pm #319889Steven Zahm
Keymaster@ Heather
Ok… after quite a bit of looking … the best I can determine is something is removing the Connections query vars before the shortcode which uses them is run.
One thing I noticed early on…
I did notice a rather bad error “Medical Practice Opportunities” custom post type that was setup using the Post Types plugin. The
Custom Rewrite Slug
defaults to theCustom Post Type Name
. Currently it is setup asMedical Practice Opportunities
. TheCustom Rewrite Slug
value has the same restrictions asCustom Post Type Name
which is “The post type name. Used to retrieve custom post type content. Must be all in lower-case and without any spaces.” You should fix that. I suggestmedical_practice_opportunities
.Unfortunately fixing that will not solve this problem.
After some really deep digging what I found is something (plugin or theme) is breaking a core WordPress function;
get_query_var()
. When called it always seems to returnNULL
. This is bad because it’ll break plugins that rely on that function like Connections does. It is a function used by a lot of plugins so this could be breaking other things for you and you not even know it.I installed the Code Snippet plugin and added a work around to get the character filtering working again, but this will not fix any other instance in Connections where
get_query_var()
is used. For example the pagination in Connections/cMap. I was able to apply a partial fix but it still does not work the way it should. You can only navigate to the pages shown in the control.With that said, it was not an update to cMap which broke it. It was likely an update to another plugin or theme which broke this function and it went unnoticed until cMap was updated.
I’m stumped as how the
get_query_var()
could possibly be broken … if you give me FTP access, I’d like to download both the plugins folder and the theme’s folder and run a few searches on those files to see if I can find the culprit.02/19/2015 at 3:16 pm #320001Heather DePriest
GuestThis reply has been marked as private.02/19/2015 at 10:02 pm #320016Steven Zahm
Keymaster@ Heather
Well… someone edited a core WordPress file on your site:
../wp-includes/query.php
It was this:
function get_query_var( $var, $default = '' ) { global $wp_query; /* return $wp_query->get( $var, $default ); */ }
And it should be this:
function get_query_var( $var, $default = '' ) { global $wp_query; return $wp_query->get( $var, $default ); }
The
return
was commented out so it would not return values like it should. Not sure why this would be done, but it can definitely breaks things pretty badly.02/20/2015 at 9:57 am #320062Heather DePriest
GuestThis reply has been marked as private.02/20/2015 at 2:58 pm #320091Steven Zahm
Keymaster@ Heather
No problem!
If you have a moment, I would truly appreciate a review as they really do make a difference. Many thanks in advance!
https://wordpress.org/support/view/plugin-reviews/connections03/04/2015 at 6:10 pm #321618Heather DePriest
GuestThis reply has been marked as private. -
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.