• Resolved Matthew

    (@revdarkwing)


    I’m using wp-job-manager with the Listify theme for several directories. This directory is properly displaying the complete address of listings while others like the one indicated are only showing city and state. I have compared everything I can think of between the two and can find no differences in the set up and the Google map is properly geolocating the listing with the address. It’s just not showing in the sidebar despite being checked to display it. I’m out of ideas and am hoping you can shed some light on this anomaly.
    Here is the site that is properly displaying the addresses
    https://hypnotherapy-directory.org/

    in both cases you can simply scroll down to the featured listings to see the difference.
    Thanks for any suggestions.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Matthew

    (@revdarkwing)

    To be more accurate, the listing that doesn’t show the address, shows the regions that have been checked… not the actual city and state. Weirder still.

    Plugin Contributor Jen H. (a11n)

    (@jenhooks)

    Hey @revdarkwing,

    I’m a bit limited here because your theme — Listify — does some things that aren’t native to WP Job Manager, so we’re not equipped to help with that. Anything to do with regions isn’t native to WPJM.

    This is probably obvious — but I want to confirm — you’ve definitely entered a full physical address (including street number and name) on the listings that aren’t showing them?

    I actually noticed here that the full address is only showing on what might be featured listings? I know this isn’t the site you’re troubleshooting, but it stood out as peculiar when I checked it out to compare.

    Is there a difference in how you’re adding the listings? Are some added from wp-admin, and some added through the front-end form?

    Have you checked out these docs from Listify?

    https://listify.astoundify.com/article/850-collect-custom-address-information

    https://listify.astoundify.com/article/652-add-a-custom-address-format

    Thread Starter Matthew

    (@revdarkwing)

    Well, this is getting more interesting by the moment. To answer your questions, most listings were entered through admin backend however it doesn’t seem to matter. I tried both ways and it’s the same. I can also confirm that all the geocoding on the listing page is identical on both sites… and, as I said earlier, the map does show complete addresses… just not the listings.
    However, now looking at the admin “all listings” (I renamed them Practices), on the site that does display the complete addresses, those street addresses display on that listings page. However on the directory that only shows the regions, only the primary region display on the “all listings” page under Location.

    And here’s something else that really has me scratching my head. I looked at the functions.php in Appearance Editor on both sites and found them to be different but I don’t recall editing them. Further, when I paste the code from the correct site to the one only showing regions, nothing changes regarding the addresses anyway. Since I basically cloned all my directories from the first one I did, I don’t know why one site would have a different functions.php code. Here are the two different function.php codes. My ability stops at the water’s edge of code sadly so I don’t know exactly what the differences mean.
    I checked the two links and neither seem to apply in this situation.
    From the site that is not displaying addresses

    <?php
    /**
    * Listify child theme.
    */
    function listify_child_styles() {
    wp_enqueue_style( ‘listify-child’, get_stylesheet_uri() );
    }
    add_action( ‘wp_enqueue_scripts’, ‘listify_child_styles’, 999 );

    /** Place any new code below this line */
    /* Enable shortcodes in widgets */
    add_filter(‘widget_text’, ‘do_shortcode’);

    add_filter( ‘listify_cover_image’, function( $image ) {
    if ( is_singular( ‘post’ ) ) {
    return false;
    }

    return $image;
    } );

    —————————————-

    From the site that IS listing addresses correctly:

    <?php
    /**
    * Listify child theme.
    */
    function listify_child_styles() {
    wp_enqueue_style( ‘listify-child’, get_stylesheet_uri() );
    }
    add_action( ‘wp_enqueue_scripts’, ‘listify_child_styles’, 999 );

    /** Place any new code below this line */
    /* Enable shortcodes in widgets */
    add_filter(‘widget_text’, ‘do_shortcode’);

    add_filter( ‘submit_job_form_fields’, ‘custom_submit_job_form_fields’ );
    function custom_submit_job_form_fields( $fields ) {

    $fields[‘job’][‘job_description’][‘required’] = false;
    // And return the modified fields
    return $fields;
    }

    add_action( ‘wp_footer’, function() {
    ?>

    <script>
    jQuery(function($) {
    var $window = $(window).outerHeight();
    var tb = ( $window – $( ‘.homepage-cover’ ).height() ) / 2;
    console.log($window);
    $( ‘.homepage-cover’ ).css({
    ‘padding-top’: tb,
    ‘padding-bottom’: tb
    } );
    } );
    </script>

    <?php
    } );

    ———————–

    I greatly appreciate the help

    Plugin Contributor Richard Archambault

    (@richardmtl)

    I’m marking this thread as Resolved as it’s been more than a month since the last reply. If you still need help, please do reply again and mark the thread as Unresolved!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Complete addresses not displayed’ is closed to new replies.