Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter reyna12

    (@reyna12)

    Nothing detected, still slightly worried

    Getting this myself, did you resolve it?

    Thread Starter reyna12

    (@reyna12)

    Also, the products all seem to show on the categories page too. what the hell has gone on?

    Thread Starter reyna12

    (@reyna12)

    Thanks for your help!

    Thread Starter reyna12

    (@reyna12)

    infact i have changed the code to this and it seems to work fine!

    $pages = get_pages($args);
    if($pages) {
    foreach ( $pages as $post ) {
        setup_postdata($post);
    	global $more;
    	$more = 0;
    ?>
    
    	<div onclick="location.href='<?php echo get_page_link( $page->ID ); ?>';" style="cursor: pointer;" class="homebox orange<?= rand(1,3) ?>" id="post-<?php the_ID(); ?>">
            <h2><a href="<?php echo get_page_link( $page->ID ); ?>"><?php echo $page->post_title; ?></a></h2>
    		<div class="entry"><?php the_content('Continue Reading'); ?></div>
        </div>
    
    <?php } } ?>
    <?php wp_reset_postdata(); ?>
    Thread Starter reyna12

    (@reyna12)

    Thanks for your quick response!, without adding the read more link yet, i have managed what you suggested, although it seems to add the excerpt twice, once outwith the div container?

    As you can see here: http://postimg.org/image/ep78xvarb/

    $pages = get_pages($args);
    if($pages) {
    foreach ( $pages as $post ) {
        setup_postdata($post);
        the_excerpt(); ?>
    
    	<div onclick="location.href='<?php echo get_page_link( $page->ID ); ?>';" style="cursor: pointer;" class="homebox orange<?= rand(1,3) ?>" id="thickbox post-<?php the_ID(); ?>">
            <h2><a href="<?php echo get_page_link( $page->ID ); ?>"><?php echo $page->post_title; ?></a></h2>
    		<div class="entry"><?php the_excerpt() ?></div>
        </div>
    
    <?php } } ?>
    <?php wp_reset_postdata(); ?>
    Thread Starter reyna12

    (@reyna12)

    Fixed it! It was the Tweet This Plugin

    Thread Starter reyna12

    (@reyna12)

    I’ve put a red border round the maincontent div and yes you are correct, but as far as i can tell, the whole loop is inside that div?

    index.php

    <?php get_header(); ?>
        <div id="maincontent">
    
    	<?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    		<div class="post">
    			<div class="post-title">
    				<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
                    <div id="postheader" class="post-title"><span class="post-month"><img src="<?php echo(get_bloginfo('template_directory')); ?>/images/dateicon.jpg" width="12" height="13" /> <?php the_time('j') ?><?php the_time('S') ?></span> <span class="post-day"><?php the_time('F') ?></span>, <span class="post-year"><?php the_time('Y') ?></span> <span class="post-cat"> In <?php the_category(', ') ?></span> |
    				<span class="post-comments"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></span>
                    </div>
    			</div>
    			<div class="entry">
    				<?php the_content('Read the rest of this entry ยป'); ?>
    			</div>
    		</div>
    
    		<?php endwhile; ?>
    
    		<div class="navigation">
    			<span class="previous-entries"><?php next_posts_link('Older Entries') ?></span>
    			<span class="next-entries"><?php previous_posts_link('Newer Entries') ?></span>
    		</div>
    
    	<?php else : ?>
    
    		<h2>Not Found</h2>
    		<p>Sorry, but you are looking for something that isn't here.</p>
    
    	<?php endif; ?>
    
        </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
    Thread Starter reyna12

    (@reyna12)

    Unfortunately i don’t have a link as it’s running on localhost ๐Ÿ™

    Is this what you are looking for? the html output is:

    <body class="home blog logged-in">
    	<div id="access1">
    	<div id="access" role="navigation">
    			  				<div class="skip-link screen-reader-text"><a href="#content" title="Skip to content">Skip to content</a></div>
    								<div class="menu"><ul><li class="current_page_item"><a href="http://127.0.0.1/wordpress/" title="Home">Home</a></li><li class="page_item page-item-2"><a href="http://127.0.0.1/wordpress/?page_id=2" title="About">About</a></li><li class="page_item page-item-8"><a href="http://127.0.0.1/wordpress/?page_id=8" title="Adventures of Huckleberry Finn">Adventures of Huckleberry Finn</a></li><li class="page_item page-item-5"><a href="http://127.0.0.1/wordpress/?page_id=5" title="Duke and the King">Duke and the King</a></li><li class="page_item page-item-6"><a href="http://127.0.0.1/wordpress/?page_id=6" title="Life in St. Petersburg">Life in St. Petersburg</a></li><li class="page_item page-item-7"><a href="http://127.0.0.1/wordpress/?page_id=7" title="Superstition">Superstition</a></li><li class="page_item page-item-4"><a href="http://127.0.0.1/wordpress/?page_id=4" title="The Grangerfords and the Shepherdsons">The Grangerfords and the Shepherdsons</a></li></ul></div>
    	</div></div><!-- #access -->
    <div id="wrapper" class="hfeed">
    Thread Starter reyna12

    (@reyna12)

    Makes absolutely no difference, I’ve probably made a right mess of the css

    <body <?php body_class(); ?>>
    	<div id="access1">
    	<div id="access" role="navigation">
    			  <?php /*  Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?>
    				<div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyten' ); ?>"><?php _e( 'Skip to content', 'twentyten' ); ?></a></div>
    				<?php /* Our navigation menu.  If one isn't filled out, wp_nav_menu falls back to wp_page_menu.  The menu assiged to the primary position is the one used.  If none is assigned, the menu with the lowest ID is used.  */ ?>
    				<?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
    	</div></div><!-- #access -->
    <div id="wrapper" class="hfeed">

    css

    '/* =Menu
    -------------------------------------------------------------- */
    #access1 {
    	width: 900px;
    	margin: 10px auto;
    }
    #access {
    	float: left;
    	display: block;
    	width: 900px;
    	border: 5px solid #036;
    }
    #access .menu-header,
    div.menu {
    	font-size: 13px;
    	margin-left: 12px;
    	width: 928px;
    }
    #access .menu-header ul,
    div.menu ul {
    	list-style-type:none;
    	margin:10px 0 0;
    	padding:15px 0 0 14px;
    	float:right;
    	display:block;
    	background:url(images/nav_corner.gif) 0 15px no-repeat;
    }
    #access .menu-header li,
    div.menu li {
    	display:block;
    	position:relative;
    	float:left;
    	list-style-type:none;
    	margin:0;
    	padding:0;
    	border-top:5px solid #fff;
    	background:#51addd url(images/nav_bg.gif) 0 100% repeat-x;
    	z-index:5;
    	color: #ffffff;
    }
    #access a {
    	display:block;
    	position:relative;
    	padding:5px 7px 5px 6px;
    	height:20px;
    	background:url(images/nav_dotted-border.gif) 100% 100% repeat-y;
    	z-index:20;
    	color: #ffffff;
    	font-size: 11px;
    	font-weight: bold;
    	text-decoration: none;
    }
    
    #access ul ul li {
    	min-width: 180px;
    }
    #access ul ul ul {
    	left: 100%;
    	top: 0;
    }
    #access ul ul a {
    	background: #333;
    	line-height: 1em;
    	padding: 10px;
    	width: 160px;
    	height: auto;
    }
    #access li:hover > a,
    #access ul ul :hover > a {
    	color: #fff;
    	text-decoration: underline;
    }
    #access ul li:hover > ul {
    	display: block;
    }
    #access ul li.current_page_item > a,
    #access ul li.current-menu-ancestor > a,
    #access ul li.current-menu-item > a,
    #access ul li.current-menu-parent > a {
    	color: #fff;
    }
    * html #access ul li.current_page_item a,
    * html #access ul li.current-menu-ancestor a,
    * html #access ul li.current-menu-item a,
    * html #access ul li.current-menu-parent a,
    * html #access ul li a:hover {
    	color: #fff;
    }
    Thread Starter reyna12

    (@reyna12)

    Hi,

    I’m just overwriting the original code, it seems to be all over the place though. Adding a blue border of the div in css shows you just where it thinks the div is

    http://img808.imageshack.us/img808/1443/border1.jpg

    Completely Confused.

    Thread Starter reyna12

    (@reyna12)

    i mean i have a main menu at the top of the page and want a Projects page so that it shows up in top menu and on the project page it would show the posts in project category.

    Thread Starter reyna12

    (@reyna12)

    Fixed now, possibly some conflicting css with the galleries css but it fixed itself and only thing i can remember changing is moving the gallery folder

    Thread Starter reyna12

    (@reyna12)

    Using the WYSIWYG

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