Simone

Forum Replies Created

Viewing 15 posts - 2,281 through 2,295 (of 2,874 total)
  • Author
    Posts
  • in reply to: Show email address in Map bubble #17531

    Simone
    Expired Member
    Post count: 3515

    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,
    enjoy

    S.

    in reply to: Show email address in Map bubble #17529

    Simone
    Expired Member
    Post count: 3515

    Hello Ed,
    try this
    you can process the field and assign it to a variable such as

    
    
    
    global $wp_query;
    
    $postid = $wp_query->post->ID; //retrieve the id
    $emaillisting= geodir_get_post_meta($postid,'geodir_email',true); //email 
    
    in reply to: "This is a preview of your listing" Text #17528

    Simone
    Expired Member
    Post count: 3515

    Hello, you can change the strings using the language file ( geodirectory-en_US.po) in /geodirectory/geodirectory-languages .
    Please follow the documentation in here

    in reply to: Select Region in Search Form #17522

    Simone
    Expired Member
    Post count: 3515

    You 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)

    in reply to: Select Region in Search Form #17520

    Simone
    Expired Member
    Post count: 3515

    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.php

    in reply to: Select Region in Search Form #17516

    Simone
    Expired Member
    Post count: 3515

    Or 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=yourlocation

    in reply to: Decimal option (Custom fields) truncates zeros on #17511

    Simone
    Expired Member
    Post count: 3515
    This reply has been marked as private.
    in reply to: auto locate the visitor location #17510

    Simone
    Expired Member
    Post count: 3515

    Yes, you need to create the missing folders

    in reply to: auto locate the visitor location #17477

    Simone
    Expired Member
    Post count: 3515

    Did you place the files (geodirectory-en_US.mo and geodirectory-en_US.po) in /wp-content/languages/geodirectory/
    ?

    in reply to: auto locate the visitor location #17409

    Simone
    Expired Member
    Post count: 3515

    Hello, the string you need to edit is the wrong one, see attach

    in reply to: Custom Field "Date" duplicates year #17385

    Simone
    Expired Member
    Post count: 3515

    Stiofan is alerted thanks for spotting.

    in reply to: Where are the photos stored? #17338

    Simone
    Expired Member
    Post count: 3515

    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 )

    in reply to: How do I get Categories to appear on the map widget? #17318

    Simone
    Expired Member
    Post count: 3515

    Great,
    Glad you found out.

    in reply to: How do I get Categories to appear on the map widget? #17306

    Simone
    Expired Member
    Post count: 3515

    Hello, I do see the categories, probably it is a cache issue on your side 🙂

    See attach.

    in reply to: add new listing form #17302

    Simone
    Expired Member
    Post count: 3515

    Hello, you can edit these fields using the .po files (usually used for translations).
    Here you can find the documentation.

    S.

Viewing 15 posts - 2,281 through 2,295 (of 2,874 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount