AndrewL32
Forum Replies Created
-
Same. Had to rollback to previous version. Kindly let us know once the issue is fixed so we can update it.
Ok so I found a temporary fix for this issue by installing the “WP Rollback” plugin and rolling back the latest WP Job Manager – Contact Listing version to the previous one and everything works fine again. Will update the plugin once the issue is confirmed as fixed.
It seems that there is some bug with the latest issue. Can the plugin dev kindly get back on this question to clarify what is going on.
Thank you
Forum: Themes and Templates
In reply to: [MH Magazine lite] MH Slider is not availableOh sh*t my bad. Thank you so much for the help.
Hello Spacetime,
Could it be the new update?
The issue can be seen in the article pages (not the homepage) btw.
Hello spacetime,
So sorry about that. Here you go:
Page address: https://goo.gl/wGiqY8
Settings for mobile:
For ‘ALL’ users on ‘PHONE’ devices [Detection: Client]
Settings for tablet:
For ‘ALL’ users on ‘TABLET’ devices [Detection: Client]
Settings for desktop:
For ‘ALL’ users on ‘DESKTOP’ devices [Detection: Client]
——————–
Shortcode [Enabled]
PHP Function [Enabled]And yes, the ad-blocks were all working fine before the update.
I have edited the html for the thumbnail a bit and it’s working beautifully now Jeremy. Thank you so much for your patience and help with this issue!!
Regards,
AndrewUnfortunately, they are kept in separate columns so they’ll be responsive Jeremy. Also, how can
the_post_thumbnail
andthe_content
be combined on same div btw?Jeremy it seems to be working!! Thank you so much! But I need help with just one more thing. The div seems to be appearing right below the post text instead of below the thumbnail and post-text and post thumb. Should the changes be made on the
function wyrta_insert_ad
Jeremy?The wp-admin as well as the webpage just stop responding and I get a blank screen after adding the above to the functions.php file Jeremy.
This is what I added on the functions.php file:
// Insert an ad after every third post function wyrta_insert_ad( $content ) { global $wp_query; if ( 2 == $wp_query->current_post && function_exists ('adinserter') ) { return $content; echo adinserter(3); } else { return $content; } } add_filter( 'the_content', 'wyrta_insert_ad', 99 );
And this is what the home.php looks like:
<?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <?php get_template_part( 'content', get_post_format() ); ?> <?php endwhile; ?> <?php endif; ?>
And the html div as well as the ad code stops displaying even on the first page.
Also, if i keep return variable and echo on the same line like this:
‘return $content . echo adinserter(3);’
wordpress breaks and I get a blank screen on wp-admin as well as the site.
What should I do Jeremy? And I really appreciate your patience with this btw. Thank you
After adding the above to the functions.php file, I should remove the code below from the home.php right?
if ($wp_query->current_post !== 0 && ($wp_query->current_post+1)%3 == 0 && function_exists ('adinserter')) { echo adinserter (3); }
I changed this:
if ($wp_query->current_post !== 0 && ($wp_query->current_post+1)%3 == 0 && function_exists ('adinserter')) { echo adinserter (3); }
to this:
if ($wp_query->current_post !== 0 && ($wp_query->current_post+1)%3 == 0) { echo '<div style="width:100%;height:50px;background-color:#000;"></div>'; }
And the black 50px div is showing only on the first page again Jeremy.
Yes Jeremy. This is the new function:
function wyrta_infinite_scroll_init() { add_theme_support( 'infinite-scroll', array( 'container' => 'content', 'wrapper' => false, 'posts_per_page' => 5, 'render' => 'wyrta_infinite_scroll_render', 'footer' => false, 'footer_widgets' => false, ) ); } add_action( 'after_setup_theme', 'wyrta_infinite_scroll_init' ); function wyrta_infinite_scroll_render() { if (have_posts()){ while (have_posts()) : the_post(); get_template_part( 'content', get_post_format() ); if ($wp_query->current_post !== 0 && ($wp_query->current_post+1)%3 == 0 && function_exists ('adinserter')) { echo adinserter (3); } endwhile; } }