bruno.carvalho
Forum Replies Created
-
Put this code before line 149 (
$phpmailer = apply_filters('wp_mail_smtp_custom_options', $phpmailer);
)$phpmailer->SMTPOptions = array( 'ssl' => array( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true ) ); }
In file wp_mail_smtp.php inside plugin folder.
Forum: Plugins
In reply to: [JSON API] JSON posts paginationHello . I made a code in which the posts are loaded via a button, but can be easily adapted.
//Loop <div class="wrp"> <ul> <?php $loop = new WP_Query( array( 'post_type' => 'download', 'orderby' => 'id', 'order' => 'DESC', 'posts_per_page' => 5) ); global $post; ?> <?php if ( $loop->have_posts() ) : while ( $loop->have_posts() ) : $loop->the_post(); ?> <li> <?php echo get_the_title(); ?> </li> <?php endwhile; endif; wp_reset_postdata(); ?> </ul> <a href="#" class="loadMore">Load More <i class="fa fa-spinner fa-spin"></i></a> </div>
//JS $(document).ready(function() { var currentPage = 2, base = 'https://MYDOMAIN.COM/', //URL for your site query = '?json=get_posts&post_type=download&page='+currentPage; // The query for getting posts $('.loadMore').click(function(e){ e.preventDefault(); var button = $(this), unavailable = button.hasClass("unavailable"); if (unavailable === false) { button.find('i').fadeIn(); $.getJSON( base+query+"&dev=1", function( data ) { var posts = data.posts, pages = data.pages, if (paginas > 1 && currentPage <= pages) {//Check if exist more posts $.each(posts, function(i, posts){ var title = posts.title.toString(); $(".wrp ul").append('<li>'+title+'</li>'); }); currentPage++; } else { button.addClass("unavailable"); } button.find('i').fadeOut(); }); } }); });
//SCSS .loadMore { color: #ffffff; padding: 15px; background-color: red; transition: all 200ms ease-in-out; margin: 20px 0; display: inline-block; &:hover { opacity: 0.7; } &.unavailable { cursor: not-allowed; opacity: 0.3; } .fa { display: none; } }
Good luck ??
Forum: Plugins
In reply to: [WP Modal Login] How I integrate this in my menu?Hello. Use this tutorial:
https://codex.bbpress.org/modal-login-in-a-menu/Works great ??
Forum: Plugins
In reply to: [WP Job Manager] Description is not showingIt’s a premium theme.
I put the file single-job_listing.php in views/single.I put the loop below and apparently is working.
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); $setings = (miss_get_setting('disable_meta_options')) ? miss_get_setting('disable_meta_options') : array(); $without_date = ( in_array('date_meta', $setings) ) ? ' without_date' : ''; $more_clases = $without_date; ?> <?php endwhile; ?>
Thanks for all help!
Forum: Plugins
In reply to: [WP Job Manager] Description is not showingI’ve added. The original theme does not have the line
the_content ();
This is the link for a test job: https://oxygenium.com.br/demos/mall/emprego/oxygenium-itatibasp-freelance-vaga-1/
Forum: Plugins
In reply to: [WP Job Manager] Job description not showingI’m having the same problem. Follow the link of my single.
https://www.dropbox.com/s/pm1gy30oe7yt4uz/single-job_listing.php
I appreciate the help. Thanks.
I get same error. Where is the author?
Please, help us!