Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • JWT_AUTH_EXPIRE

    The jwt_auth_expire allows you to change the value exp before the token is created.

    Default Value:

    time() + (DAY_IN_SECONDS * 7)

    Thread Starter super powered

    (@super-powered)

    Yeah, that’s the only one, heres the extended view.

    Error5
    Error6

    It fires whenever I switch my filter to a Month that has an SVG, or when scrolling to the end of the grid, if an SVG would get loaded.

    Thread Starter super powered

    (@super-powered)

    Sorry for the late reply, was out for the weekend.

    I was able to fix it by just adding a quick isset() if statement to the line before it echoes.

    As for the error on activation, I have been able to reproduce it on a second site now and have copied it below.

    The error:
    “The plugin generated 214 characters of <b>unexpected output</b> during activation. If you notice “Headers already sent” messages, problems with syndication feeds of other issues, try deactivating or removing this plugin.”

    The new site also has the same issue with the “CSS Class to target” when not initially set. However, after setting it “test” the error goes away, and then stays away even when set back to blank.

    I assume there’s something happening on activation causing that initial value not to be put into the array.

    The setups are pretty basic. Both had just ACF PRO, Yoast and Wordfence installed with pretty bread and butter custom themes.
    One threw the error on a vagrantpress box, the other on a live godaddy server.

    Worth noting that after the initial error message, I’m unable to reproduce it again on either of the sites. Even after deactivating/reactivating.

    Thread Starter super powered

    (@super-powered)

    Looking at the file in question the error is being thrown from this variable:

    value="<?php echo $bodhi_svgs_options['css_target'];

    in the “CSS Class to target” Option

    Thread Starter super powered

    (@super-powered)

    Whoops, ending up answering my own question.

    For anyone else wondering, add this to your functions.php:

    remove_filter( ‘custom_menu_order’, ‘__return_true’ );
    remove_filter( ‘menu_order’, ‘smackcsvfree_change_menu_order’ );

    You should be able to get this to work by passing arguments into the map.

    <?php
    $args = array
    (
        'map_content' => 'single',
        'load_empty_map' => false,
    );
    echo GeoMashup::map($args);
    ?>

    If you wanted to still use an if statement, something like this may work:

    <?php if (GeoMashup::info()):?>
        <div id="geomashup">
            <?php echo GeoMashup::map() ?>
        </div>
    <?php endif;?>

    Although, as far as I can tell from the Wiki it looks like your supposed to use “GeoMashup::location_info()”

    Thread Starter super powered

    (@super-powered)

    I DID IT!
    Turns out I didn’t need to find the filter.

    Just added ‘object_ids’ to the $geo_query_args in the query() function in geo-mashup-search.php.

    $geo_query_args = wp_array_slice_assoc(
    			$this->query_vars,
    			array( 'object_name', 'sort', 'exclude_object_ids', 'limit','object_ids' )
    		);
    Thread Starter super powered

    (@super-powered)

    Update:
    I’ve added some code to geo-mashup.php in the nearby_list() function:

    unset( $args['template'] );
    		 $map_content = ( isset( $args['map_content'] ) ) ? $args['map_content'] : null;
    		 if ( $map_content instanceof WP_Query )
    		 {
    			 echo 'Im Working!'; //debug
    			 // We've been given a post query, put its contents in a global map
    			 $args['object_ids'] = implode( ',', wp_list_pluck( $map_content->posts, 'ID' ) );
    			 echo $args['object_ids']; //more debug
    		 }

    Now checking to see how (or if) object_ids is handled in geo-mashup-search.php.
    EDIT: Looks like object_ids is included in the file but not used. hrrrrmmmm…

    Where is ‘geo_mashup_search_query_args’ located? I’m assuming its a function that’s filtering.

    You can pass a wordpress query into map-content. I have not tested it with the short code, however in the page template:

    $query_args = array
    (
        'post_type'      => 'page',
    );
    $the_query = new WP_Query($query_args);
     $args = array
    (
        'map_content' => $the_query
    )
    echo GeoMashup::map($args);?>

    Sounds like your looking for map_content

    map_content – global, single, contextual, or a WP_Query object. Overrides the default content of a map. The WP_Query object is only an option for the template tag, and will include only posts returned by the query on the map.

    Thread Starter super powered

    (@super-powered)

    I would also settle for editting the output of <?php echo GeoMashup::list_located_posts($args); ?> if it’s easier.

    So far, it doesn’t seem like either have a template to edit in the “default-templates” directory.

    Thread Starter super powered

    (@super-powered)

    Awesome! Doing that as well as adding wp_head() to the header fixed it.
    Thanks! : D

    Thread Starter super powered

    (@super-powered)

    Jquery is definately running and working. 1.11.2

    I do not have anything for Ajax Load more in the footer. Is there a script I’m supposed to be including?

    Thread Starter super powered

    (@super-powered)

    Tried to click the “Insert Ajax Load More” button on the page editor and got this warning at the top:

    Notice: Undefined variable: path in /vagrant/wordpress/wp-content/plugins/ajax-load-more/admin/editor/editor-build.php on line 6 Call Stack #TimeMemoryFunctionLocation 10.0010235432{main}( )../admin-ajax.php:0 20.09542383072do_action( )../admin-ajax.php:85 30.09542384544call_user_func_array ( )../plugin.php:496 40.09542384632alm_ajax_tinymce( )../plugin.php:496 50.09652385464include_once( ‘/vagrant/wordpress/wp-content/plugins/ajax-load-more/admin/editor/editor-build.php’ )../editor.php:22 http://vagrantpress.dev/wp-includes/js/tinymce/themes/advanced/skins/wp_theme/dialog.css”&gt;

    I’m not sure if it’s related or not.
    I have no errors in the console on page load.

    Thread Starter super powered

    (@super-powered)

    The shortcode is definately doing SOMETHING at least.
    <div class=”alm-listing alm-ajax ” data-repeater=”default” data-post-type=”post” data-post-format=”” data-category=”” data-category__not_in=”” data-tag=”” data-tag__not_in=”” data-taxonomy=”” data-taxonomy-terms=”” data-taxonomy-operator=”” data-meta-key=”” data-meta-value=”” data-meta-compare=”” data-year=”” data-month=”” data-day=”” data-author=”” data-search=”” data-post-status=”” data-order=”DESC” data-orderby=”date” data-exclude=”” data-offset=”0″ data-posts-per-page=”5″ data-lang=”” data-scroll=”true” data-scroll-distance=”150″ data-max-pages=”5″ data-pause=”false” data-button-label=”Older Posts” data-button-class=”” data-destroy-after=”” data-transition=”slide”></div>

    shows up on the page where the shortcode is. But there’s nothing inside of it however.

    I’ve also tried testing with using <?php echo do_shortcode(‘[ajax_load_more]’); ?> in the page file and get the same result.

Viewing 15 replies - 1 through 15 (of 15 total)