Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

silvers

Members
  • Joined

  • Last visited

  1. hi guys i am using the the standard 2010 theme in wordpress, and as far as i can remember i haven't done anything much to the loop but if you click on "older entries" - it goes to page 2 but still displays the same post as the homepage. so basically it's not going to the older posts. it only displays the most recent. you can see it here... www.fifanews.co.uk if anyone could please help me i would be so grateful! my code is... <?php /** * The loop that displays posts. * * The loop displays the posts and the post content. See * http://codex.wordpress.org/The_Loop to understand it and * http://codex.wordpress.org/Template_Tags to understand * the tags used in it. * * This can be overridden in child themes with loop.php or * loop-template.php, where 'template' is the loop context * requested by a template. For example, loop-index.php would * be used if it exists and we ask for the loop with: * <code>get_template_part( 'loop', 'index' );</code> * * @package WordPress * @subpackage Twenty_Ten * @since Twenty Ten 1.0 */ ?> <?php /* Display navigation to next/previous pages when applicable */ ?> <?php if ( $wp_query->max_num_pages > 1 ) : ?> <div id="nav-above" class="navigation"> <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyten' ) ); ?></div> <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div> </div><!-- #nav-above --> <?php endif; ?> <?php /* If there are no posts to display, such as an empty archive page */ ?> <?php if ( ! have_posts() ) : ?> <div id="post-0" class="post error404 not-found"> <h1 class="entry-title"><?php _e( 'Not Found', 'twentyten' ); ?></h1> <div class="entry-content"> <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyten' ); ?></p> <?php get_search_form(); ?> </div><!-- .entry-content --> </div><!-- #post-0 --> <?php endif; ?> <?php /* Start the Loop. * * In Twenty Ten we use the same loop in multiple contexts. * It is broken into three main parts: when we're displaying * posts that are in the gallery category, when we're displaying * posts in the asides category, and finally all other posts. * * Additionally, we sometimes check for whether we are on an * archive page, a search page, etc., allowing for small differences * in the loop on each template without actually duplicating * the rest of the loop that is shared. * * Without further ado, the loop: */ ?> <?php while ( have_posts() ) : the_post(); ?> <?php /* How to display posts in the Gallery category. */ ?> <?php if ( in_category( _x('gallery', 'gallery category slug', 'twentyten') ) ) : ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> <div class="entry-meta"> <?php twentyten_posted_on(); ?> </div><!-- .entry-meta --> <div class="entry-content"> <?php if ( post_password_required() ) : ?> <?php the_content(); ?> <?php else : ?> <?php $images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) ); if ( $images ) : $total_images = count( $images ); $image = array_shift( $images ); $image_img_tag = wp_get_attachment_image( $image->ID, 'thumbnail' ); ?> <div class="gallery-thumb"> <a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php echo $image_img_tag; ?></a> </div><!-- .gallery-thumb --> <p><em><?php printf( __( 'This gallery contains <a %1$s>%2$s photos</a>.', 'twentyten' ), 'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"', $total_images ); ?></em></p> <?php endif; ?> <?php the_excerpt(); ?> <?php endif; ?> </div><!-- .entry-content --> <div class="entry-utility"> <a href="<?php echo get_term_link( _x('gallery', 'gallery category slug', 'twentyten'), 'category' ); ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a> <span class="meta-sep">|</span> <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?> </div><!-- .entry-utility --> </div><!-- #post-## --> <?php /* How to display posts in the asides category */ ?> <?php elseif ( in_category( _x('asides', 'asides category slug', 'twentyten') ) ) : ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php if ( is_archive() || is_search() ) : // Display excerpts for archives and search. ?> <div class="entry-summary"> <?php the_excerpt(); ?> </div><!-- .entry-summary --> <?php else : ?> <div class="entry-content"> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> </div><!-- .entry-content --> <?php endif; ?> <div class="entry-utility"> <?php twentyten_posted_on(); ?> <span class="meta-sep">|</span> <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?> </div><!-- .entry-utility --> </div><!-- #post-## --> <?php /* How to display all other posts. */ ?> <?php else : ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> <div class="entry-meta"> <?php twentyten_posted_on(); ?> </div><!-- .entry-meta --> <?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?> <div class="entry-summary"> <?php the_excerpt(); ?> </div><!-- .entry-summary --> <?php else : ?> <div class="entry-content"> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?> </div><!-- .entry-content --> <?php endif; ?> <div class="entry-utility"> <?php if ( count( get_the_category() ) ) : ?> <span class="cat-links"> <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?> </span> <span class="meta-sep">|</span> <?php endif; ?> <?php $tags_list = get_the_tag_list( '', ', ' ); if ( $tags_list ): ?> <span class="tag-links"> <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?> </span> <span class="meta-sep">|</span> <?php endif; ?> <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?> </div><!-- .entry-utility --> </div><!-- #post-## --> <?php comments_template( '', true ); ?> <?php endif; // This was the if statement that broke the loop into three parts based on categories. ?> <?php endwhile; // End the loop. Whew. ?> <?php /* Display navigation to next/previous pages when applicable */ ?> <?php if ( $wp_query->max_num_pages > 1 ) : ?> <div id="nav-below" class="navigation"> <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyten' ) ); ?></div> <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div> </div><!-- #nav-below --> <?php endif; ?>
  2. Hi guys, thanks to everyone who responded... unfortunately the two scripts that you guys posted, require you to put your age. whereas i am looking for one where you just click to to agree that you are old enough. also the link to the tutorial doesn't have enough information and is too complicated to understand. i just need one that people can click to say that they are old enough or not. but it does need to php rather than javascript! please help!! x x x
  3. hi guys, i am making a website that sells wine and i am trying to get a script for age verification... i have searched for hours but haven't found anything that works properly! i just need it to be something like "are you of legal drinking age?" they click yes and go through to the site... or they click no and the go to google or whatever. i need it for a joomla website. i have looked in to extensions but they were expensive. i need it to save the cookie for a while as well. if someone could save my life i would be soooo grateful. my brain hurts from the over complication, i just need something simple and easy to use! thanks x x x
  4. Hi guys, this is a crazy situation! i am using joomla and virtumart for an ecommerce website selling wine... the client wants a verification page where you have to confirm you are old enough to enter the site. i have found a few scripts and i will give them a go... BUT he also wants to have a drop down menu where you choose which country you are in, and that will change the currency in virtuemart to the correct currency!!! is that even possible? luckily he only wants australian and singapore currency. the default is australian. but i need the functionality that if you choose singapore on the first page, that it sends this info to virtuemart and changes the currency. if a php legend can help me i will pay you! seriously dudes i'll paypal it straight to you if you can help me out! please help me. thanks
  5. Hi guys, this is a crazy situation! i am using joomla and virtumart for an ecommerce website selling wine... the client wants a verification page where you have to confirm you are old enough to enter the site. i have found a few scripts and i will give them a go... BUT he also wants to have a drop down menu where you choose which country you are in, and that will change the currency in virtuemart to the correct currency!!! is that even possible? luckily he only wants australian and singapore currency. the default is australian. but i need the functionality that if you choose singapore on the first page, that it sends this info to virtuemart and changes the currency. if a php legend can help me i will pay you! seriously dudes i'll paypal it straight to you if you can help me out! please help me. thanks
  6. Hi guys, I have built a site and it looks good in firefox etc... it even looks ok in IE 7 & 8 but in IE 5 and 6 it looks horrible, and i don't even know where to begin! the guy i made it for, shows his clients the website and they keep telling him how crap i am. so he's giving me a lot of crap for it. my website is www.procurehealth.co.uk please can someone help me with this? it's such a mess and i am panicking a bit! i would be soo grateful if you guys can help! thanks
  7. Hi, i have been making a website for a friend, and he wanted rounded corners. so i have some rounded pics that show up properly in firefox. but in IE the two images that display the top of the main content and the bottom - don't show up. this makes it look horrible. i am using .png with transparency, but i have also tried jpgs and that hasn't solved the problem. plus other pngs are showing fine. i don't get why this is just happening to those two pics? please can someone help me out. i am stressing as i have just sent him a preview, and then realised it looks so bad!! my site is... http://silvermanwebdesign.co.uk/procurehealth/ this is my css - it looks fine to me! .top {background: url(images/top.png)no-repeat;width:910px;height:18px;margin:0 auto;text-align:center;display:block;} .bottom {background: url(images/bottom.png)no-repeat;width:912px;height:18px;margin:0 auto;} i even added display:block to one of them as well as text-align:center thinking it might help but it doesn't Thanks in advance
  8. yes dude that's definitely what i am looking for! I am sorry though. I am not versed enough with jquery to do that. I am not asking for you to spoon feed me though, but i wondered if you knew any tutorials i could run through to do it? that would be absolutely ideal for what i am trying to do!
  9. sorry for the poor explanation... my client wants to have a picture of manchester on the page, and when you click that picture, it will reveal the contact details for the manchester branch. i have no idea how to do this. i was looking on google for some kinda plugins or something, but i haven't found anything. so, quite simply, i need to have a pic on the screen, and when you click it, it either slides away, or disappears to reveal the text behind it.. here is the page i am talking about... it's just the details at the moment, so they would need to be hidden by the pictures and then appear when they are clicked! http://silvermanwebdesign.co.uk/star/our-team/ if you guys could help me out you would make my week for sure!!! THANKS!!!
  10. hey guys thanks for all the replies! especially andyl - that's exactly what i was looking for. THANK YOU. i am very grateful for that! yeah i also seem to have a bad ass virus on my website which is freaking me out. i need to get that sorted out! i have soooo many issues to take care of at the moment! and thanks for letting me know what it is and stuff. basically thanks to everyone
  11. hi, i am currently using that type of code but it waits till the document is ready till it loads... that is the problem. i need it to work before the page loads in some respects. i was really hoping there might be some css to stop it showing outside the normal area. my website is... www.allthebestvids.com
  12. Hi, you know if you are using a jquery picture slider. there is this annoying second or 2 when you load your page and the pics stack on top of each other before the jquery loads and puts them neatly in to the slide show... is there any trick to stop this happening? it doesn't look very nice and i am hoping that a bit of code will sort me out? :roll: thanks x x x
  13. dude you rule! thank you so much... I have it working now! i have been wondering how to do it for about 3 months now and you have really helped me. thanks loads Dizi, i REALLY appreciate it!
  14. wow that is a problem on it's own! how would i go about sorting that out guys?
  15. Hi guys, I am so freaking frustrated at the moment. i have put a jquery slider on my blog. i have experience with jquery and i have copied the files over, but all the pics are stacked on top of each other as if the jquery isn't working... but the words that come up alongside the pics are coming through via jquery and thats;s working fine. please help me before i melt!! my site is allthebestvids i am using the slider from this page and this is how it should look... jquery slider Thanks, Silvers xxx

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.