Jeff
Forum Replies Created
-
AuthorPosts
-
Hi Jorge:
Sorry about the problems. I had sent a request asking for an admin login to explore why this is happening for you, but didn’t hear back.
If you can email me details of how I can examine this, I’ll get it sorted out right away.
You just need a space before the !.
display: none !important;
This only hides the image, but it still downloads to the visitors device. You should have someone edit the template, or check for a setting, to disable it entirely.
New code is below. The short version is that you got your conditions mixed up. Your if’s were embedded where they didn’t need to be and you weren’t returning properly. This version should be better.
Also, the unset lines for the $tab_array aren’t needed since you don’t use it and don’t return it. Micro-optimization, but cleans up the code.
// This is the add filter action which will use the function below to re-order tabs. add_filter( 'geodir_detail_page_tab_list_extend', 'geodir_detail_page_tab_list_extend' ); //This is the actual function to re-order tabs function geodir_detail_page_tab_list_extend( $tab_array ) { // Start with a clean $new_tab_array $new_tab_array = []; // before creating the new array which will re-order the tabs, we check if the custom post type is “Project Proposal” if ( 'gd_project_proposal' == get_post_type() ) { // here you can modify the array and re-arrange tabs as you wish, you can create a completely new array too. // this is the post profile tab, by default is the 1st if ( isset( $tab_array['post_profile'] ) ) { $new_tab_array['post_profile'] = $tab_array['post_profile']; // set in new array // IMPORTANT the following code tells GeoDirectory that this is no longer the default active tab $new_tab_array['post_profile']['is_active_tab'] = ''; unset( $tab_array['post_profile'] );//unset in old one } // this is the post info tab (optional for custom fields), by default, if available, is the 2nd. if ( isset( $tab_array['post_info'] ) ) { $new_tab_array['post_info'] = $tab_array['post_info'];// set in new array unset( $tab_array['post_info'] );//unset in old one } // this is the images tab, by default is the 3rd if ( isset( $tab_array['post_images'] ) ) { $new_tab_array['post_images'] = $tab_array['post_images'];// set in new array unset( $tab_array['post_images'] );//unset in old one } // this is the video tab, appears only if there are videos and by default is the 4th if ( isset( $tab_array['post_video'] ) ) { $new_tab_array['post_video'] = $tab_array['post_video'];// set in new array unset( $tab_array['post_video'] );//unset in old one } // this is the speacial offer tab, appears only if there are special offers and by default is the 5th if ( isset( $tab_array['special_offers'] ) ) { $new_tab_array['special_offers'] = $tab_array['special_offers'];// set in new array unset( $tab_array['special_offers'] );//unset in old one } // this is the map tab, by default is the 6th if ( isset( $tab_array['post_map'] ) ) { $new_tab_array['post_map'] = $tab_array['post_map'];// set in new array unset( $tab_array['post_map'] );//unset in old one } // this is the related listing tab, it is optional and by default is the 8th if ( isset( $tab_array['related_listing'] ) ) { $new_tab_array['related_listing'] = $tab_array['related_listing'];// set in new array unset( $tab_array['related_listing'] );//unset in old one } // ** Return the $new_tab_array inside Project Proposal return $new_tab_array; } elseif ( 'gd_completed_system' == get_post_type() ) { // this is the post info tab (optional for custom fields), by default, if available, is the 2nd. if ( isset( $tab_array['post_info'] ) ) { $new_tab_array['post_info'] = $tab_array['post_info'];// set in new array unset( $tab_array['post_info'] );//unset in old one } // this is the images tab, by default is the 3rd if ( isset( $tab_array['post_images'] ) ) { $new_tab_array['post_images'] = $tab_array['post_images'];// set in new array unset( $tab_array['post_images'] );//unset in old one } // this is the video tab, appears only if there are videos and by default is the 4th if ( isset( $tab_array['post_video'] ) ) { $new_tab_array['post_video'] = $tab_array['post_video'];// set in new array unset( $tab_array['post_video'] );//unset in old one } // this is the post profile tab, by default is the 1st if ( isset( $tab_array['post_profile'] ) ) { $new_tab_array['post_profile'] = $tab_array['post_profile']; // set in new array // IMPORTANT the following code tells GeoDirectory that this is no longer the default active tab $new_tab_array['post_profile']['is_active_tab'] = ''; unset( $tab_array['post_profile'] );//unset in old one } // this is the speacial offer tab, appears only if there are special offers and by default is the 5th if ( isset( $tab_array['special_offers'] ) ) { $new_tab_array['special_offers'] = $tab_array['special_offers'];// set in new array unset( $tab_array['special_offers'] );//unset in old one } // this is the map tab, by default is the 6th if ( isset( $tab_array['post_map'] ) ) { $new_tab_array['post_map'] = $tab_array['post_map'];// set in new array unset( $tab_array['post_map'] );//unset in old one } // this is the related listing tab, it is optional and by default is the 8th if ( isset( $tab_array['related_listing'] ) ) { $new_tab_array['related_listing'] = $tab_array['related_listing'];// set in new array unset( $tab_array['related_listing'] );//unset in old one } // ** Return the $new_tab_array inside Completed System return $new_tab_array; // If Check for Completed System ends here } else { // Here we tell GeoDirectory to use the regular array for all other custom post types. return $tab_array; } }
Hi Jorge:
I’ve never received or seen any message from you. We don’t provide translated text, but there is a WordPress standard template included with the plugin. You can use the program PoEdit to create a German translation.
You would then place that in the proper WordPress folder to keep it safe during upgrades.
If you need assistance, you can email me at jeff at jeffrose dot ca
I did. Please remember to allow for time zone differences. I got them at 10:30pm last night and it’s currently 8:30 am. I’ll send you replies shortly.
Hi Michael. You should be able to register an account here : http://gt-vouchers.com/rumbledog?action=register
Or you can email me at jeff at jeffrose dot ca for a direct response.
This issue is with by Business Hours plugin, thanks to Guust for bringing this to my attention.
The issue I see is that the fields are not outlined/visible. This is a problem on the whole form and is a CSS choice made by the theme designer. You will need to have a designer or someone knowledgeable with CSS to update the theme.
I’m looking at this from my iPad at the moment, so if I’ve misunderstood the problem, let me know. I’ve attached a screenshot of what I see.
There’s an article for this in the documentation. You can use this site to find the coordinates for all of them.
Thanks Guust. I guess “unexpected behavior” rather than a bug. Good to know the difference.
Hi Malcolm.
Let me dig into this. It isn’t a GeoDirectory problem as my plugin generally functions independently from GD for language etc.
Thanks Paolo. We do have the notifications on.
If you’re referring to my Related Posts plugin/add-on, a few people have asked for this, so I’ll be trying to get it sorted out this weekend.
Hi Sandra:
When you’re writing an article, you’d link keywords or business names to their listings using the tools that WordPress provides, see the screenshot I’ve attached. This is the best way to do it. It can increase your SEO and provides context for your reader. When they read a phrase like “…best massage I ever had…” you could have “best massage” link to the massage business you’re reviewing (like I just did).
Hi Sandra:
You’re not missing anything. The plugin was designed this way intentionally, as you can link to places/listings easily while writing an article, using good keywords and the built-in editor. Putting the listings in the sidebar seems a bit more… distant and disconnected than linking within the article.
I could build a widget that you can add to a sidebar, and only appear if a post has linked listings. Something I can consider.
Interesting, I haven’t received any emails about this. I happened across this thread.
I’m out of town on business and will have a look at this when I get home. Can you tell me what version of the plugin you’re on?
-
AuthorPosts