Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Forum: Plugins
    In reply to: [Force Login] REST API user
    Thread Starter mathskater

    (@mathskater)

    I’m sorry for responding late. We managed to circumvent the problem.
    On the other hand we have another problem, we use the plugin Mapster WP Maps the maps are not displayed.

    There is a error : XHRGET https://safer.local/wp-json/mapster-wp-maps/map?id=1296 [HTTP/2 401 Unauthorized 4511ms]

    Thanks in advance.

    Thread Starter mathskater

    (@mathskater)

    Sorry I didn’t recieve the notification of your reply. I chose another solution by integrating the shortcode of the form in the location page.

    Thanks

    Thread Starter mathskater

    (@mathskater)

    Hi ! Thank you once again for this super fast and precise answer! It works perfectly!

    Thread Starter mathskater

    (@mathskater)

    Thank you very much for your reactivity! It’s perfect! Just for people in my case who would read this post, you also have to put “Interaction” on “Click” for it to work.
    Thanks again !

    Thank’s !
    But nothing is displayed, that’s the code I’m using, maybe it can help to understand where the problem is coming from.

    <ul class="columns max-<?php echo $column_limit; ?>-columns">
    <?php
    while ( $a_z_query->have_items() ) :
    $a_z_query->the_item();
    ?>
    <li>
    <a href="<?php $a_z_query->the_permalink(); ?>">
    <?php
    $post = $a_z_query->get_the_item_object( 'I understand the issues!' );										if ( has_post_thumbnail( $post->ID ) ) :										    the_post_thumbnail( 'featured-image-abecedaire' );										endif;
    ?>
    <div class="az-box-data">										<div class="glass"><i class="fal fa-search-plus"></i></div>									</div>
    <div class="az-title"><?php $a_z_query->the_title(); ?></div>
    </a>
    </li>
    <?php endwhile; ?>
    </ul>

    Here is the error that appears :

    Fatal error: Uncaught Error: Call to undefined function has_thumbnail() in /app/public/wp-content/themes
    Stack trace:
    #0 /app/public/wp-content/plugins/a-z-listing/classes/class-a-z-listing.php(654): include()
    #1 /app/public/wp-content/plugins/a-z-listing/classes/class-a-z-listing.php(675): A_Z_Listing->do_template('/app/public/wp-...')
    #2 /app/public/wp-content/plugins/a-z-listing/classes/class-a-z-listing.php(690): A_Z_Listing->the_listing()
    #3 /app/public/wp-content/plugins/a-z-listing/functions/shortcode.php(203): A_Z_Listing->get_the_listing()
    #4 /app/public/wp-includes/shortcodes.php(319): a_z_shortcode_handler(Array, '', 'a-z-listing')
    #5 [internal function]: do_shortcode_tag(Array)
    #6 /app/public/wp-includes/shortcodes.php(197): preg_replace_callback('/\\[(\\[?)(a\\-z\\-...', 'do_shortcode_ta...', '[a-z-listing po...')
    #7 /app/public/wp-includes/class-wp-hook.php(286): do_shortcode('[a-z-listing po...')
    #8 /app/public/wp-includes/plugin.php(203): WP_Hook->apply_filters('[a-z-li in /app/public/wp-content/themes on line 51

    Sorry, but for me it does not work.

    I have the same probleme.
    I try : $a_z_query->the_post_thumbnail();

    But it doesn’t work.

    Math.

    • This reply was modified 6 years, 2 months ago by mathskater.
Viewing 8 replies - 1 through 8 (of 8 total)