Simone
Forum Replies Created
-
AuthorPosts
-
Use only
$emaillisting= geodir_get_post_meta($ID,'geodir_email',true); //email <span class="geodir_email"><i class="fa fa-envelope"></i><?php echo $emaillisting; ?></span>
the id is already declared in post_functions.php (just saw it now) so you can use $ID rather than the $postid;
tested and it works,
enjoyS.
Hello Ed,
try this
you can process the field and assign it to a variable such asglobal $wp_query; $postid = $wp_query->post->ID; //retrieve the id $emaillisting= geodir_get_post_meta($postid,'geodir_email',true); //email
Hello, you can change the strings using the language file ( geodirectory-en_US.po) in /geodirectory/geodirectory-languages .
Please follow the documentation in hereYou can check the listing-filter-form.php (in /geodirectory/geodirectory-templates) to see what variables uses the search form in GD.
then you will insert these values in the dropdown (here how to create dropwdown)
Hi Mike, all is possible, but depends on how handy are you with the code 🙂 .
To have the conditional dropdown based on the post type, something like this would be the first thing that pops in my mind:
$current_posttype = geodir_get_current_posttype(); if ($current_posttype=="gd_events") { // code for the events post type } elseif etc..
to dynamically populate the categories it’s something like
global $wpdb; $current_posttype = geodir_get_current_posttype(); $taxonomy = geodir_get_taxonomies( $current_posttype ); $terms = get_terms( $taxonomy ); foreach($terms as $cat){ echo $cat->name; }
but this is untested and not complete I guess.
you could check the popular post category widget to see how to get categories for a specified post type
the file is in /geodirectory/geodirectory-widgets/geodirectory_popular_widget.phpOr you can manually create a searchbox with a dropdown with the categories and towns in it.
Then the value for the form would be like gd_YOURPOSTTYPEcategory=category (e.g. gd_accomodationcategory=Guesthouses ) and for towns is snear=yourlocationThis reply has been marked as private.Yes, you need to create the missing folders
Did you place the files (geodirectory-en_US.mo and geodirectory-en_US.po) in /wp-content/languages/geodirectory/
?Hello, the string you need to edit is the wrong one, see attach
Stiofan is alerted thanks for spotting.
Hi Stacey,
all the pictures are stored in the wp-content/uploads/ folder and then sorted in subfolders based on year and month, so now since we are in october, the latest pictures are in wp-content/uploads/2014/10(e.g. one of your picture in the listing you provided, is here http://www.muttmaps.com/wp-content/uploads/2014/10/7174_1-BIG-PICTURE-from-franklin-DPs-facebook-page.jpg )
Great,
Glad you found out.Hello, I do see the categories, probably it is a cache issue on your side 🙂
See attach.
Hello, you can edit these fields using the .po files (usually used for translations).
Here you can find the documentation.S.
-
AuthorPosts