Grow your CSS skills. Land your dream job.

I need a genius or wizard, Anyone?

  • # April 27, 2012 at 5:44 pm

    Hey guys,

    I can’t figure out why my site isn’t showing the full content of the page. The site is built on WordPress. It use to work perfectly but now it isn’t. It isn’t just a problem with this page it is the whole category, none of the “posts” listed under the “specials” category are showing up.

    This is what I mean. scroll to the footer of the page and click on the first post under “Marty’s Specials”

    Let’s see what level of skill there is out there… (I bet I’m setting myself up to find out it’s an extremely simple fix, that’s ok though because I can’t figure it out myself)

    # April 27, 2012 at 5:47 pm

    I’m guessing your single.php file isn’t including the proper files.

    # April 27, 2012 at 8:44 pm

    I’m guessing it’s the PDf 24 plugin that is active on this page, or a problem with the actual content on it: http://www.metalmart.biz/building-this-spring/

    This post works fine: http://www.metalmart.biz/metal-roof-hemming-a-panel-video/ which leads me to believe there’s nothing wrong with single.php (or loop-single.php)

    # April 30, 2012 at 12:51 pm

    Still not understanding the problem.

    # April 30, 2012 at 1:05 pm

    The admin edit bar doesn’t even show up at the top of these pages when I’m signed in. It’s very strange. I really need help…anyone?

    # April 30, 2012 at 1:25 pm

    Did you try disabling the PDF24 plugin?

    # April 30, 2012 at 1:46 pm

    @Senff yes, I tried that and it didn’t do anything. I’m kinda stuck.

    # April 30, 2012 at 1:59 pm

    Please post your single.php.

    # April 30, 2012 at 2:36 pm

    @TheDoc Here it is

    < ?php
    $post = $wp_query->post;
    if ( in_category('8') ) {
    include(STYLESHEETPATH . '/single-salesProfile.php');

    }
    else if ( in_category('20') ) {
    include(STYLESHEETPATH . '/single-blog.php');
    }
    else if ( in_category('7') ) {
    include(STYLESHEETPATH . '/single-specials.php');
    }

    else {
    include(STYLESHEETPATH . '/single-main.php');
    }
    ?>

    # April 30, 2012 at 2:39 pm

    And here is the single-specials.php

    < ?php

    //Retrieve all admin options
    global $options;
    foreach ($options as $value) {
    if (get_option( $value ) === FALSE) {
    $$value = $value;
    } else {
    $$value = get_option( $value );
    }
    }

    ?>

    < ?php get_header(); ?>

    < ?php if($jbobich_sidebar == 'true') : ?>
    < ?php get_sidebar(); ?>
    < ?php endif; ?>

    < ?php the_post(); ?>

    < ?php the_title(); ?> < ?php pdf24Plugin_link('Print Ad'); ?>


    Posted: < ?php the_time('m/d/y'); ?> < ?php echo expireDate(); ?> < ?php echo daysLeft(); ?>
    #comments-wrap" class="comments-link">< ?php comments_number('No Comments', '1 Comment', '% Comments'); ?>


    < ?php the_content(); ?>
    < ?php pdf24Plugin_topBottom(); ?>

    IMPORTANT NOTICE:

    To better serve you, our customer, please call for current availability of inventory.

    Quantities change hourly. Inventory quantities are correct as of date posted. Prices listed are FOB: METALMART Lehi, Utah-Cash & Carry only. Delivery is available and can be arranged at additional cost. The flyer must be presented to cashier at time of purchase. Items are sold "AS-IS". PRICES SUBJECT TO CHANGE AT ANY TIME WITHOUT ANY PRIOR NOTICE; THE PRICES IN THE AD WILL BECOME INVALID. FOR ACCURATE PRICING, PLEASE CALL TO VERIFY PRICE AND QUANTITIES. A MINIMUM ORDER MAY BE REQUIRED ON SOME ITEMS.


    < ?php comments_template('', true); ?>

    < ?php if($jbobich_sidebar == 'false') : ?>
    < ?php get_sidebar(); ?>
    < ?php endif; ?>

    < ?php get_footer(); ?>

    # April 30, 2012 at 3:25 pm

    Is this proper code in single-specials.php?

    < ?= expireDate(); ?> < ? daysLeft(); ?>

    I’m not a PHP expert so < ?= may be a way of writing things that's unknown to me, but I'm pretty that's where the problem is and that you intended to write something like this:

    < ?php echo expireDate(); ?> < ?php echo daysLeft(); ?>

    # April 30, 2012 at 4:49 pm

    I think Senff has got it!

    # May 1, 2012 at 10:31 am

    That didn’t do it :( so sad.

    # May 1, 2012 at 10:37 am

    Maybe those variables aren’t defined, remove them to check what happens…. Change this:

    Posted: < ?php the_time('m/d/y'); ?>  < ?php echo expireDate(); ?> < ?php echo daysLeft(); ?>

    Into this:

    Posted: < ?php the_time('m/d/y'); ?>
    # May 1, 2012 at 12:09 pm

    @Senff you win the genius/wizard award. That did it. You are the man. Thank you so much for giving me the fix. I owe you one.

Viewing 15 posts - 1 through 15 (of 24 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".