Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Wordpress Page Help

  1. #1
    Sami4u's Avatar
    Sami4u is offline Butterflies Forever
    Join Date
    Sep 2009
    Location
    USA
    Posts
    1,421
    Thanks
    697
    Thanked 293 Times in 221 Posts

    Wordpress Page Help

    Hi,

    Is their a code that tells a post to split into pages?

    Like if you have a long posts of 1500 word at the bottom it would say

    page 1 2 3

    I am hoping for something that works as simple as this.

    <!--more-->

    Thanks in advance

    Butterflies Forever

    Sami
    Current Celebrity Gossip Movies & More TV Site
    Find out how I'm able to get up to 420 backlinks for month, by spending 30 seconds per day...all for FREE! - Click Here

  2. #2
    dtkguy's Avatar
    dtkguy is offline Still Learnin'
    Join Date
    Dec 2008
    Posts
    391
    Thanks
    7
    Thanked 164 Times in 108 Posts
    Code:
    <!--nextpage-->
    WordPress tag similar to the more tag, except it can be used any number of times in a post, and each insert will "break" and paginate the post at that location. Hyperlinks to the paginated sections of the post are then generated in combination with the wp_link_pages() or link_pages() template tag.

    Source - Write Post SubPanel - WordPress Codex

  3. Thanked by:

    Aquarezz (19 December, 2009), bogart (19 December, 2009), Sami4u (19 December, 2009)

  4. #3
    Sami4u's Avatar
    Sami4u is offline Butterflies Forever
    Join Date
    Sep 2009
    Location
    USA
    Posts
    1,421
    Thanks
    697
    Thanked 293 Times in 221 Posts
    Hi,

    It worked but it appeared in the wrong place

    Please check my post here it appeared under the subscribe rss and related post I would like it above.

    Free Womens Blogs Blog Archive Sarah Jessica Parker Biography, Filmography, Pictures

    Now what do I need to do?

    Thanks in Advance

    Sami
    Current Celebrity Gossip Movies & More TV Site
    Find out how I'm able to get up to 420 backlinks for month, by spending 30 seconds per day...all for FREE! - Click Here

  5. #4
    dtkguy's Avatar
    dtkguy is offline Still Learnin'
    Join Date
    Dec 2008
    Posts
    391
    Thanks
    7
    Thanked 164 Times in 108 Posts
    Hey,

    Looks like you may need to edit the template and move the code that creates the pagination up above the plugins area.

    Look in your template file for something like this -> wp_link_pages() and see where it's in the flow of things and try moving it around.

    -Edit- I just downloaded that Calm Breeze template to see where it was, looks to be correctly positioned. So instead, you should just need to modify where your rss and related posts plugin calls are placed in that template, make sure it's below wp_link_pages.

  6. Thanked by:

    Sami4u (19 December, 2009)

  7. #5
    Sami4u's Avatar
    Sami4u is offline Butterflies Forever
    Join Date
    Sep 2009
    Location
    USA
    Posts
    1,421
    Thanks
    697
    Thanked 293 Times in 221 Posts
    Hi,

    wp_link_pages appears in two location in the theme on the on the page.php and on single.php

    So where do you want it be placed?

    It is below the content I put above the content and it appears at the top of the post not correct.

    What .php am I to edit

    Thanks in Advance

    Sami
    Current Celebrity Gossip Movies & More TV Site
    Find out how I'm able to get up to 420 backlinks for month, by spending 30 seconds per day...all for FREE! - Click Here

  8. #6
    dtkguy's Avatar
    dtkguy is offline Still Learnin'
    Join Date
    Dec 2008
    Posts
    391
    Thanks
    7
    Thanked 164 Times in 108 Posts
    You want to be editing single.php, keep wp_link_pages right after that content call. Are there any other calls there, such as related_posts and rss stuff? If so make sure they are below wp_link_pages.

  9. Thanked by:

    Sami4u (19 December, 2009)

  10. #7
    Sami4u's Avatar
    Sami4u is offline Butterflies Forever
    Join Date
    Sep 2009
    Location
    USA
    Posts
    1,421
    Thanks
    697
    Thanked 293 Times in 221 Posts
    Hi,

    New at this stuff.

    Here is single page.php

    I don't see them.

    Please explain what you are talking about.
    Code:
    <?php get_header(); ?>
            
            <!-- Content -->
            <div id="content">
            
                <?php if (have_posts()) : ?>
                <?php while (have_posts()) : the_post(); ?>
                <!-- Post -->
                <div class="post" id="post-<?php the_ID(); ?>">
                    <div class="post-title">
                        <div class="post-date">
                            <span><?php the_time('d') ?></span>
                            <?php the_time('F') ?>
                        </div>
                        <h2><?php the_title(); ?></h2>
                        Author: <?php the_author() ?> &nbsp;/ &nbsp;Category: <?php the_category(', ') ?>
                    </div>
                    <div class="post-entry">
                        <?php the_content('Read more...'); ?>
                        <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
                        <?php the_tags( '<p>Tags: ', ', ', '</p>'); ?>
                        <?php edit_post_link('Edit this entry.','',''); ?>
                    </div>
                    <?php comments_template(); ?>
                    <div class="post-info"></div>
                </div>
                <!-- /Post -->
                <?php endwhile; ?>
                <?php else : ?>
                <!-- Post -->
                <div class="post">
                    <div class="post-title">
                        <h2 class="not-found-title">Not Found</h2>
                    </div>
                    <div class="post-entry not-found-entry">
                        <p>Sorry, but you are looking for something that isn't here.</p>
                    </div>
                    <div class="post-info"></div>
                </div>
                <!-- /Post -->
                <?php endif; ?>
                                                      <div class="navigation">
                                                           <div class="alignright"><?php next_post_link() ?></div>
                                                           <div class="alignleft"><?php previous_post_link() ?></div>
                                                         </div>
                                                   </div>
            
            </div>
            
        <!-- /Content -->    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
    Thanks in advance

    Butterflies Forever

    Sami
    Current Celebrity Gossip Movies & More TV Site
    Find out how I'm able to get up to 420 backlinks for month, by spending 30 seconds per day...all for FREE! - Click Here

  11. #8
    dtkguy's Avatar
    dtkguy is offline Still Learnin'
    Join Date
    Dec 2008
    Posts
    391
    Thanks
    7
    Thanked 164 Times in 108 Posts
    Hmm, yep, nothing in there. What plugins are you using for related posts and the subscribe to rss? They must place themselves differently. If you let me know which plugins you're using I'll see if I can figure out how to fix it for ya.

  12. Thanked by:

    Sami4u (19 December, 2009)

  13. #9
    Sami4u's Avatar
    Sami4u is offline Butterflies Forever
    Join Date
    Sep 2009
    Location
    USA
    Posts
    1,421
    Thanks
    697
    Thanked 293 Times in 221 Posts
    Hi,

    Here is what I am using.

    Yet Another Related Posts Plugin 3.0.13

    Returns a list of related entries based on a unique algorithm for display on your blog and RSS feeds. A templating feature

    allows customization of the display. By mitcho (Michael Yoshitaka Erlewine).

    Subscribe Remind 1.1

    Give your readers a little reminder to subscribe to your blog’s feed at the end of each post. By Trevor Fitzgerald.

    Thanks in advance

    Butterflies Forever

    Sami
    Current Celebrity Gossip Movies & More TV Site
    Find out how I'm able to get up to 420 backlinks for month, by spending 30 seconds per day...all for FREE! - Click Here

  14. #10
    dtkguy's Avatar
    dtkguy is offline Still Learnin'
    Join Date
    Dec 2008
    Posts
    391
    Thanks
    7
    Thanked 164 Times in 108 Posts
    Okay then, for Yet Another Related Posts Plugin, go to the options and turn off (uncheck) 'Automatically display related posts' and then edit your single.php

    and add this line :

    PHP Code:
    <?php related_posts(); ?>
    directly after this one :

    PHP Code:
    <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ''after' => '</p>''next_or_number' => 'number')); ?>
    Now on to Subscribe Remind - it does not allow you to position it (at least the free version doesn't).

    So you can either accept that the line "if you liked this post subscribe to my rss" will always be above the page numbers or you can disable subscribe remind all together and just manually do what it does in your theme file..

    If you want to go the manual way it's easy.

    Just add this to your single.php directly after the wp_link_pages line :

    Code:
    <p><em>If you enjoyed this post, make sure you <a href="http://freewomensblogs.com/feed/">subscribe to my RSS feed</a>!</em></p>
    So let's put it all together :

    Version 1 (if you disable Subscribe Remind)
    PHP Code:
    <?php get_header(); ?>
            
            <!-- Content -->
            <div id="content">
            
                <?php if (have_posts()) : ?>
                <?php while (have_posts()) : the_post(); ?>
                <!-- Post -->
                <div class="post" id="post-<?php the_ID(); ?>">
                    <div class="post-title">
                        <div class="post-date">
                            <span><?php the_time('d'?></span>
                            <?php the_time('F'?>
                        </div>
                        <h2><?php the_title(); ?></h2>
                        Author: <?php the_author() ?> &nbsp;/ &nbsp;Category: <?php the_category(', '?>
                    </div>
                    <div class="post-entry">
                        <?php the_content('Read more...'); ?>
                        <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ''after' => '</p>''next_or_number' => 'number')); ?>
                        <p><em>If you enjoyed this post, make sure you <a href="http://freewomensblogs.com/feed/">subscribe to my RSS feed</a>!</em></p>
                        <?php related_posts(); ?>
                        <?php the_tags'<p>Tags: '', ''</p>'); ?>
                        <?php edit_post_link('Edit this entry.','',''); ?>
                    </div>
                    <?php comments_template(); ?>
                    <div class="post-info"></div>
                </div>
                <!-- /Post -->
                <?php endwhile; ?>
                <?php else : ?>
                <!-- Post -->
                <div class="post">
                    <div class="post-title">
                        <h2 class="not-found-title">Not Found</h2>
                    </div>
                    <div class="post-entry not-found-entry">
                        <p>Sorry, but you are looking for something that isn't here.</p>
                    </div>
                    <div class="post-info"></div>
                </div>
                <!-- /Post -->
                <?php endif; ?>
                                                      <div class="navigation">
                                                           <div class="alignright"><?php next_post_link() ?></div>
                                                           <div class="alignleft"><?php previous_post_link() ?></div>
                                                         </div>
                                                   </div>
            
            </div>
            
        <!-- /Content -->    
    <?php get_sidebar(); ?>
    <?php get_footer
    (); ?>
    Version 2 (you keep Subscribe Remind)
    PHP Code:
    <?php get_header(); ?>
            
            <!-- Content -->
            <div id="content">
            
                <?php if (have_posts()) : ?>
                <?php while (have_posts()) : the_post(); ?>
                <!-- Post -->
                <div class="post" id="post-<?php the_ID(); ?>">
                    <div class="post-title">
                        <div class="post-date">
                            <span><?php the_time('d'?></span>
                            <?php the_time('F'?>
                        </div>
                        <h2><?php the_title(); ?></h2>
                        Author: <?php the_author() ?> &nbsp;/ &nbsp;Category: <?php the_category(', '?>
                    </div>
                    <div class="post-entry">
                        <?php the_content('Read more...'); ?>
                        <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ''after' => '</p>''next_or_number' => 'number')); ?>
                        <?php related_posts(); ?>
                        <?php the_tags'<p>Tags: '', ''</p>'); ?>
                        <?php edit_post_link('Edit this entry.','',''); ?>
                    </div>
                    <?php comments_template(); ?>
                    <div class="post-info"></div>
                </div>
                <!-- /Post -->
                <?php endwhile; ?>
                <?php else : ?>
                <!-- Post -->
                <div class="post">
                    <div class="post-title">
                        <h2 class="not-found-title">Not Found</h2>
                    </div>
                    <div class="post-entry not-found-entry">
                        <p>Sorry, but you are looking for something that isn't here.</p>
                    </div>
                    <div class="post-info"></div>
                </div>
                <!-- /Post -->
                <?php endif; ?>
                                                      <div class="navigation">
                                                           <div class="alignright"><?php next_post_link() ?></div>
                                                           <div class="alignleft"><?php previous_post_link() ?></div>
                                                         </div>
                                                   </div>
            
            </div>
            
        <!-- /Content -->    
    <?php get_sidebar(); ?>
    <?php get_footer
    (); ?>
    : phew : Okay that should hopefully do it for ya

  15. Thanked by:

    Sami4u (19 December, 2009)

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 6
    Last Post: 28 December, 2010, 07:32 AM
  2. wordpress custom registration page ?
    By SonnyCooL in forum Wordpress
    Replies: 2
    Last Post: 27 April, 2010, 20:48 PM
  3. wordpress page directed to another domain
    By garfish in forum Wordpress
    Replies: 2
    Last Post: 20 April, 2010, 10:41 AM
  4. Wordpress Front Page Help
    By Sami4u in forum Blogging
    Replies: 9
    Last Post: 15 October, 2009, 20:02 PM
  5. Replies: 1
    Last Post: 19 May, 2009, 14:49 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •