Alex Rollin
Forum Replies Created
-
AuthorPosts
-
Hi Rick,
I see, I see. Well, I do recommend trying to use as few CPT as possible, and preferably 1, so visitors can use the simplest search possible.
You could definitely have 2 ‘top level’ categories ‘store’ and ‘online’ or something like that, have those be the default categories you use. Then contact a GD Expert if you need help making this customization to add that category to all your listings:
https://wpgeodirectory.com/add-custom-body-classes-to-wordpress/
With that in place you could use category to discriminate between online shops.
I would also recommend that you do some translation so you can give your form filling visitors some instructions about how to use the categories properly.
https://wpgeodirectory.com/docs/translate-core/
Keep in touch and let us know how it goes!
Hello @tkh2015,
Sorry to hear you were having a problem. However, when I checked your site, for both events and business listings, both urls contained the city, which reflect the setting you have at GD > Permalinks.
Please take a look at the settings and let us know if you run into listings that aren’t behaving according to those settings.
It could be that you visited WP > Settings > Permalinks and re-saved your permalinks? That may have put things back into shape for you. In all likelihood some or other plugin triggered your permalinks to regenerate, or perhaps one or two were not processed correctly.
If that happens again, the first thing to try is a visit to WP > Settings > Permalinks. Just save them again and it should be back in shape.
In some cases the permalinks get bent out of shape because re-saving them on a site with lots of posts does require resources; if the process runs out of resources, the process can fail, and then there are broken links.
If it happens again send us the URL so we can take a look.
Thanks
Hello,
That is an error report being issued by ReCaptcha and it part of the functionality from Google, nothing to do with GeoDirectory.
It is in fact actually part of the security, perhaps, because one way to trigger the error message is to click on the button more than once.
Hello,
The German translation of GeoDirectory Core should be located on your server in the following places:
/wp-content/languages/plugins/geodirectory-de_DE.po
/wp-content/languages/plugins/geodirectory-de_DE.moInside that file you will find ‘places’ translated as ‘orte’ and can change it to “Kinderkleiderbörse”
The steps for translation are outlined here: https://wpgeodirectory.com/docs/translate-core/
Hello @proshark,
1# It sounds like you are using Supreme Directory child theme, is that right?
We have a page that talks about all the features for the Supreme Directory theme here:
https://wpgeodirectory.com/docs/supreme-directory-overview/
Are you wanting to make changes to the home page? If so, you are in luck because you can set a subtitle. The detail are at the link above, but it comes down to adding a custom field with key ‘subtitle’.
As far as Widget areas, you can find those in Appearances -> Widgets, and as you can see there are a couple, Home Top and Home Content. Does that answer your question?
You can find all the options available for changing styles including colors and typography in the Customizer; that was a big part of the recent update.
As far as customizing your style is concerned, we have a great page that talks about how to add your custom CSS here: https://wpgeodirectory.com/docs/customizing-your-style/
With Supreme Theme child, you can take advantage of all the theme features for the Detail page, and also have some freedom with your WP Front:Static page and your “GD Home” page. By the way, are you using a different page for your “WP Front Page: Static Page”? That’s a great way to make use of a builder on your frontpage. In that case you can use GD Shortcodes to insert listings on your home page for a great custom layout.
Maybe the way the GD Home page is setup feels limited, but you do have the two widget areas. You can do a lot with them, but it sounds like you are really wanting the freedom of the front page mentioned above. That’s why we recommend using your builder on the Front Page. The GD Home page is also the layout of the “Location” page, the page that is used to display for each city or country location. It’s a template used by GeoDirectory, so it’s not really a page at all. GD uses WP Pages so that the URLs are flexible, and available for other operations on your site, but any content you add to the page is overridden by GD.
However, you can still open up some options for the GD Home / Location page in Supreme by making a simple change to the layout: Remove the Featured Area. Completely remove the Hero area there. Then you can do all sorts of things with widgets in the Top and Content areas.
You could start with this CSS to hide the Featured area
.sd.home .featured-area { display: none; }
You’ll also need to assign a color to the header because it will be transparent
.sd-homepage .site-header, .sd.sd-location .site-header { background-color: #333; }
Now you can add more widgets to GD Home Top and really show them off. You can add a new Advanced Search bar and control the options:
[gd_advanced_search]
anything you like. You can add widgets, and then ‘hide’ those widgets for location pages, so they only show on the home page, too, using Widget logic.
https://wpgeodirectory.com/docs/useful-plugins/#logic
You can even use shortcode in widgets with this snippet:
// Enable shortcodes in text widgets add_filter('widget_text','do_shortcode');
Find out all about GD Widgets and Shortcode at these links:
https://wpgeodirectory.com/docs/widgets/
https://wpgeodirectory.com/docs/core-shortcodes/Let us know if you have any more questions about Supreme Directory child theme
Hello @joshdobbs,
I used this snippet on my test site and it comes out looking like the attached image:
add_filter('geodir_show_post_address', 'geodir_change_address_order' , 100 , 2) ; function geodir_change_address_order($html , $vars) { global $post, $preview, $wpdb; $field_icon=''; if (strpos($field_icon,'http') !== false) {$field_icon_af = '';} elseif($field_icon==''){$field_icon_af = '<i class="fa fa-home"></i>';} else{$field_icon_af = $field_icon; $field_icon='';} if(!$preview) { $html = ' '; $html .= '<span class="geodir-i-location" style="'.$field_icon.'">'.$field_icon_af; $html .= ' Adresse: '; $html .= '</span>'; //print_r($_POST); if($post->post_address){ $html .= '<span itemprop="streetAddress">'.$post->post_address.'</span> ';} if($post->post_zip){ $html .= '<span itemprop="postalCode">'.$post->post_zip.'</span> ';} if($post->post_city){ $html .= '<span itemprop="addressLocality">'.$post->post_city.'</span> ';} if($post->post_region){ $html .= '<span itemprop="addressRegion">'.$post->post_region.'</span> ';} $html .= ' '; } return $html ; }
Hello!
There’s no need to bump your topics, it doesn’t move them up in the order they are addressed, it actually bumps them ‘down’. https://wpgeodirectory.com/support-policy/
Let’s see if we can get on the same page and find a resolution. With your last post here, I am not sure what you are asking for. First you asked where “orte” came from, then you say you translated places to something besides orte, and then you say orte is not coming through, but your first post and the image shows orte coming through. 1# You want to change the text ‘orte’ at the lower left of the map?
Here’s a search/filter to see the places where ‘orte’ occurs in the German file for core. https://wpgeodirectory.com/translate/projects/geodirectory/de/default/?filters%5Bterm%5D=orte&filters%5Buser_login%5D=&filters%5Bstatus%5D=current_or_waiting_or_fuzzy_or_untranslated&filter=Filter&sort%5Bby%5D=priority&sort%5Bhow%5D=desc
It shows ‘orte’ is the places slug, amongst others. 2# Do you already have the german core file installed?
The map filter on the bottom, where it shows ‘orte’, is showing the CPT information, not categories. If you click events, then all the events categories show on the right. Click places, all the places categories show on the right.
3# Does that clarify the situation? Is there a problem with the core translation not showing up?
https://wpgeodirectory.com/docs/translate-core/
Let us know what you are looking for here and we will be happy to help. You can also include a site URL and WP Admin to allow us to take a look. We would need FTP to verify the location of the translation files.
Thanks
GD_Dash Shortcode to Share Totals with Site Visitors
The new Dashboard sounds great! Here are some of the stats I have seen mentioned as desireable.
About the counts:
Listings – Count Total (by CPT, all)
Listing – Category Total (CPT+CatID)
Listings – Period (day, week, month)
Users – Total
Users – Period (day, week, month)
Pageviews – Count Total (CPT, all)
Pageviews – Period (day, week, month)
Claimed – Count Total (CPT, ALL)
Claimed Category – Count Total (CPT+CatID)
Reviews – Count Total (CPT, ALL)
Review – Period (day, week, month)
Revenue – Count Total
Revenue – Period (day, week, month, year)About using the stats, a “gd_dash” shortcode that would show each of those numbers individually would be great when used with ‘GD Features”. I could simply output a number and leave the styling to the site owner.
The shortcode could be used multiple times with features to show an icon and some text around the number. An example of what a site owner might put on their homepage:
[Restauarants ICON] <h3>Restaurants</h3> <p>[gd_dash total_cat_by_id="99"] restaurant listings</p>
Hello!
I’m not familiar with “Orte” either. What language is that?
Could it be that “Places” or another CPT was already renamed at GD > Custom Post Types
Take a look at the Custom Post Types Addon
Hello @elsllepaplats,
Your GD Permalinks are at GD > Permalinks
Here’s more about that setting: https://wpgeodirectory.com/docs/core-permalinks/
For WP Permalinks, sometimes they need to be resaved. It’s just how it is, and it’s a good thing to remember to do if you are adjusting other slugs or the url structure, like choosing to include city or country or categories in the url.
Glad it’s working now! Let us know if there is anything else we can do to help!
Hello Rick,
Sorry to hear about your trouble; I don’t really know how that could have happened.
About your question, whether some listings in a CPT can have location, while others don’t? There are a couple ways to approach the question.
The short answer is that physical location is either off or on for a CPT and that the settings applies to all the listings using the CPT, no mixing.
That said, if you want to hide listings from the map, you can assign them a category icon that is transparent.
You could use packages to assign a package ID to certain listings with/without locations to use package id CSS to hide certain fields on the page. https://wpgeodirectory.com/docs/common-code-snippets/#package
To help us understand, can you tell us more about what you are trying to achieve?
This reply has been marked as private.Hello @eic2010,
If I understand correctly, you are uploading a category icon, and it shows as a missing image, meaning that either the image URL is not correct or that the image is literally gone from the media libray. Let’s see what we can do about that.
A couple things occur to me, things you can look into:
What happens if you click the image to copy the url, and then change http to https or vice versa?
1# Have you recently changed the media settings or permalinks?
You can try saving those again. Be sure your images folder is set as explained here: https://wpgeodirectory.com/docs/basic-installation/#media2# Is the site forcing http with a plugin?
You can try disabling any plugins that might be doing that.3# CDN – are you using Jetpack or an image CDN?
Try disabling it, or finishing setup to see if either one fixes the issue.4# Have you checked if the image is in the media library?
Is the icon or other images visible in the library?If those aren’t the issue, you can make a private reply here by clicking the “Set as private reply” on your response. You can include your access information and only our staff will be able to read your reply. Please include the following information:
WP Admin URL:
Username:
Password:FTP Host URL:
Port:
User:
Password:Please make sure to verify the credentials first. The WP User must be an administrator, and the FTP user should have access to the site’s installation folder.
Thanks in advance, and we look forward to finding a solution.
January 9, 2018 at 8:35 pm in reply to: general question of adding user roles is needed or not #412113Hi Ulrike,
Give it a try and let us know if there anything we can do.
🙂
Hello @ukvape
As soon as we have a date we will make an announcement. GD V2 will be available at no extra charge to active members.
-
AuthorPosts