Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter mrlambdas

    (@mrlambdas)

    Ok, so here is a link to one of the articles for the company at which I’m interning Link. The button which is supposed to add the article to the list appears above our second set of sharing buttons. When it is clicked it simply scrolls to the top of the page and doesn’t add anything to the saved for later list.

    Thread Starter mrlambdas

    (@mrlambdas)

    Awesome, so the %s is like the ? in mysqli and prepare is like bind_param. Thanks for the help! If I understand correctly this should be a function in our functions.php as to not overwrite during updates?

    Thread Starter mrlambdas

    (@mrlambdas)

    You’re absolutely right, my apologies, wrong plugin.

    Thread Starter mrlambdas

    (@mrlambdas)

    Not a stupid question at all, it was my stupidity really. I didn’t realize it was a widget. No wonder there were no placement settings. Thanks for your help, now to modify it into a horizontal div so it displays before the infinite content on mobile.

    Thread Starter mrlambdas

    (@mrlambdas)

    Well, I found one of the two. Someone had placed one in an ad widget for our theme and was able to remove that. The other wasn’t anywhere in the code, I’m not sure how it got there. I was able to hide it using jquery’s contains methods however.

    <script>
    $(document).ready(function(){
        $("h3:contains(Sign Up For Our Newsletter)").css("display", "none");
        $("label:contains(Email address:)").css("display", "none");
        $("input[id*='mc4wp_email']").css("display", "none");
        $("input[value*='Sign up']").css("display", "none");
    });
    </script>

    Not the best solution having to add another script to the page, but it works.

    Thread Starter mrlambdas

    (@mrlambdas)

    I deactivated ALL plugins, did not fix it. I reset the plugins folder over FTP that didn’t work either. We had a folder mu-plugins (was empty), renamed it mu-plugins-old, problem still persists. I also installed the Twenty Sixteen theme and switched to that, form still present.

    Forum: Fixing WordPress
    In reply to: Increment $post
    Thread Starter mrlambdas

    (@mrlambdas)

    I originally was going to, but after 6 months they do not offer support (1 year if paid for). I thought I would check here if there was a simple way to set the post variable.

    Forum: Fixing WordPress
    In reply to: Increment $post
    Thread Starter mrlambdas

    (@mrlambdas)

    I can’t even tell how the theme is querying the posts. I’ve done work with PHP before (mysqli), I am struggling to find out how these WP queries are being executed. This is one of the 5 posts per page, I can’t tell where it is getting have_posts() or in_array.

    <?php global $do_not_duplicate; if (isset($do_not_duplicate)) { if (have_posts()) : while (have_posts()) : the_post(); if (in_array($post->ID + 14, $do_not_duplicate)) continue; ?>
    
    <li class="infinite-post">
    
    <?php if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) { ?>
    
    <div class="archive-list-img left relative">
    
    <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>">
    
    <?php the_post_thumbnail('medium-thumb'); ?>
    
    <?php global $numpages; if(get_post_meta($post->ID + 14, "mvp_video_embed", true)) { ?>
    
    <div class="feat-video">
    <i class="fa fa-video-camera fa-2"></i>
    </div><!--feat-video-->
    
    <?php } else if ( $numpages > 1 ) { ?>
    
    <div class="feat-gallery">
    <i class="fa fa-camera-retro fa-2"></i>
    </div><!--feat-gallery-->
    <?php } ?>
    </a>
    </div><!--archive-list-img-->
    <div class="archive-list-text left relative">
    <a href="<?php the_permalink(); ?>" rel="bookmark">
    <?php the_title(); ?></a>
    
    <p><?php echo excerpt(22); ?></p>
    
    <div class="archive-list-info left relative">
    
    <span class="archive-list-author left">
    <?php the_author(); ?></span>
    <span class="archive-list-date left"><?php the_time(get_option('date_format')); ?></span>
    
    </div><!--archive-list-info-->
    
    </div><!--archive-list-text-->
    
    <?php } else { ?>
    
    <div class="archive-list-text left relative w100">
    
    <a href="<?php the_permalink(); ?>" rel="bookmark">
    <?php the_title(); ?></a>
    
    <p><?php echo excerpt(22); ?></p>
    
    <div class="archive-list-info left relative">
    
    <span class="archive-list-author left">
    <?php the_author(); ?></span>
    <span class="archive-list-date left"><?php the_time(get_option('date_format')); ?></span>
    
    </div><!--archive-list-info-->
    
    </div><!--archive-list-text-->
    
    <?php } ?>
    
    </li>
    
    <?php endwhile; endif; } else { ?>

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