sithonia
Forum Replies Created
-
AuthorPosts
-
This reply has been marked as private.
I know that’s possible. But I really like how the location switcher shows the current location in the menu, changing it from “Change Location” to the name of the location shown. I think that helps the visitor to see clearly what location is being shown when they browse other categories.
Is it possible to make the dropdown menu show more than just a few locations? I tried to adjust the height with css, but it didn’t work, only made the scrolling of the location stop on desktop as well.
If it’s possible to have the same thing done as on “Add listing form”, to have all locations shown in a dropdown, that would be great!
Thanks for looking in to it! I really appreciate the support.
So sorry, my mistake. I hadn’t activated my child theme, so no changes in functions were taking effect. Now it works.
Sorry to bother you about this again, but I’m now working developing another site and I can’t get shortcodes to work in the location description.
I tried to just copy all plugin files to get the adjustments you had made and used this code in my child theme’s function.php:add_filter( 'geodir_location_description', 'do_shortcode'10,1)
But I can’t get it to work at all. Everything shows as plain text.
http://dev.thassosgreece.com/location/sarti/What am I doing wrong? Any particular file/folder in GeoDirectory that I need to upload? On the other hand I copied all the files from the site that works with shortcode…
Thanks for your help!
What did you adjust? Did you change something in the plugin-files that will be in some future update? Because I will need to do the same thing on another website as well…
Excellent! I’m so pleased! No problems being patient when you manage to solve it like this!
Thanks a lot!Almost… The recent posts aren’t messed up, but they only show 3 even though I request 4.
Also, the accordion still doesn’t recognize the titles or the parameters (like columns, open etc) that are all put in quotation marks.When I took away the quotation marks, it works fine. Except that only the first word of the title shows. The space puts and end to the title.
Is there a way of making the field accept quotation marks and spaces? Though I can use html entities, I would have a problem every time I add a location and hit save – html entities have been translated in to spaces and again only the first word in the title would show.
This reply has been marked as private.This reply has been marked as private.Don’t know how to make double quotes instead of curly quotes. I ended up using html code:
"
for the quotes. But it didn’t work any better. Now only one post is shown.
Also, for the titles in the Accordion on that page I have to use html
for space, or only the first word of the title is shown.
What’s worse is that as soon as I save changes to any, even another location’s description – all these html codes have been changed into normal quotes and spaces, and so the proper formatting is lost again.
Thanks for your fast reply. I posted about this earlier (https://wpgeodirectory.com/support/topic/location-description-and-use-of-shortcode/) and received a code snippet to add to functions:
add_filter('geodir_location_description', 'do_shortcode',10,1);
As I mentioned in that thread, I managed to get it to work. But now it doesn’t anymore, maybe some update was made that changed it, don’t know. But since it worked once, it should be possible! I just can’t figure it out…
Thanks for looking in to it!
Can’t there be something added in functions.php to make the location description area be able to use the shortcode the same way that any other content area does? That shortcode works just fine when used in the content area of a place-post, for example.
I decided to try a different version of the shortcode than x-theme says, and it works!
For example, according to x-theme the shortcode would be:
[recent_posts count=”4″ orientation=”horizontal” category=”top-10″]
But this produced just the default 3 most recent posts.
Then I tried the same code but without the quotation marks, [recent_posts count=4 orientation=horizontal category=top-10], as I saw that’s how GeoDirectory does their shortcodes – and it worked perfect!X-theme shortcodes work well with quotation marks in place posts and other text fields, but it didn’t in the location description field. No clue why. Anyhow, it works, and I just have to remember when I use the code with quotation marks and when not. Unless there is some other code I can add in the function.php to make it the same?
Thanks for your response!
Thank you! It almost works.
The shortcode works, although not correctly. I wanted, for example, to show 4 recent posts from a particular category. It produces the 3 most recent posts – ignoring the code about quantity and category. This shortcode works correctly in other areas of GeoDirectory, so it’s not a theme compatibility issue. Something is still missing for the location description field to accept all of the shortcode. Any ideas?
Thanks
Thanks a lot! I was trying to figure it out with Firebug, and you helped to point me in the right direction!
Thanks for your quick support and answer! -
AuthorPosts