Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter jessicalane

    (@jessicalane)

    Issue resolved: I’d got my selectors wrong in the style sheet. It should have been:

    #linkbar-wrapper .linkbar #menu-main-menu li ul
    {display:none;
    padding:0;
    margin:0;}
    #linkbar-wrapper .linkbar #menu-main-menu li:hover > ul
    {display:block;
    padding:0;
    margin:0;}
    Thread Starter jessicalane

    (@jessicalane)

    Brilliant, Thanks a lot 🙂

    Thread Starter jessicalane

    (@jessicalane)

    Thank you esmi! but i think i’ve just found the root of the problem- the wordpress on this server is an old version- the following code works on version 3.5.1 , but not on the server i was using, which is version 3.3.1 does that sounds like it could be the problem??

    the code i’m using now:

    <h2>Latest NEWS</h2>
    <br/>
    <?php wp_reset_query(); ?>
    <?php query_posts("post_type=post&posts_per_page=3");?>
    <?php if (have_posts()): while (have_posts()): the_post() ; ?>
    <h5><?php the_title();?></h5>
    <?php
    global $more;
    $more = 0;
    the_content("More...");
    ?>
    <?php endwhile; endif; ?>

    Thread Starter jessicalane

    (@jessicalane)

    I’ve taken over the website and inherited it- i come from a html/css/jquery background and am new to wordpress. I’m afraid i can’t even point to to the site as it’s on a local server at present. I had just hoped i was making an obvious error that i had overlooked.

    If you’ve got no other suggestions then i’ll think of something different.

    Thank you for your help.

    Thread Starter jessicalane

    (@jessicalane)

    This is why i’m having difficulty- i’m new to PHP.

    I posted that snippet because i thought it was the most relevant- it is the only part of function.php that refers to the ‘more’ function- i’m sure of this. Is there anywhere else other than functions.php i should check?

    Thread Starter jessicalane

    (@jessicalane)

    thanks for helping! I’m using my own custom theme. it says this concerning the content / more function in function.php

    function short_content($post_id, $content, $char_length, $read_more_class, $read_more_text) {
    $count = strlen($content);
    if ($count >= $char_length) {
    $content = substr($content, 0, $char_length);
    $content.= '... <a class="'.$read_more_class.'"
    href="' . get_permalink($post_id) . '">'.$read_more_text.'';
    	}
    echo $content;
    }

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    is this where it’s gone wrong?

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