• Resolved agfreesafety

    (@agfreesafety)


    I have groups of posts (like these, for example) that I would like to have linked using numbered hyperlinks at the bottom of the posts (similar to this).

    Even though the pages that I want to link together like this are separate posts, they have the same title, because I created them like that thinking that it was possible to link them as if they were each a part of the same post.

    I’ve done some searching, and I’ve found plugins that link pages, but I haven’t seen any that link posts.

    Is there a plugin that available that would make this possible?

Viewing 15 replies - 1 through 15 (of 30 total)
  • Images are not very helpful here. Please link to both sites and we can review perhaps how that is being achieved.

    That said, you can just create an ordered list where desired. (or simply change ul to ol in your nav and apply css properly)

    http://www.w3.org/TR/html401/struct/lists.html

    Thread Starter agfreesafety

    (@agfreesafety)

    If you scroll down, you can see that this post is doing what I’d like to accomplish.

    Here’s a screenshot of what I’m talking about specifically on that page, to save you some time.

    How can I go about accomplishing that in a manner where each of of the blog posts I showed in my first post up above are linked in that manner?

    Is there a plugin that can do this easily?

    Thread Starter agfreesafety

    (@agfreesafety)

    I just came across this WP Page Navi plugin, I’m going to look into this to see if this provides what I’m looking for.

    Thread Starter agfreesafety

    (@agfreesafety)

    Doesn’t look like it does.

    It appears that that plugin just creates a numbered pagination to the bottom of the “Blog” page.

    What I want to do, is link multiple blog posts with the same blog title in a way that they all appear to be separate pages of the same blog post.

    Please help, someone! 🙂 Thanks in advance.

    After researching, it sounds like the formal name for what I’m looking for is “Numeric Pagination” of posts to make separate posts look like they’re all just separate pages of the same post.

    Actually, you can use that plugin, but now I think I understand what you want to achieve.

    First, you need to create one page not multiple posts

    Here is what you do then, you use <!--nextpage--> tag…

    it is this code added between paragraphs in Text (HTML) tab.

    <p>text here</p>
    <!--nextpage-->
    <p>text here</p>

    See working example at my site:

    and this tip on how to get pagenavi working on multipart pages

    http://scribu.net/wordpress/wp-pagenavi/

    Thread Starter agfreesafety

    (@agfreesafety)

    Actually, you can use that plugin, but now I think I understand what you want to achieve.

    First, you need to create one page not multiple posts

    Here is what you do then, you use <!–nextpage–> tag…

    it is this code added between paragraphs in Text (HTML) tab.

    <p>text here</p>
    <!–nextpage–>
    <p>text here</p>
    See working example at my site:

    and this tip on how to get pagenavi working on multipart pages

    http://scribu.net/wordpress/wp-pagenavi/

    The scribu.net website that you referenced talks about replacing a particular part of the content-page.php with some other code, but my content-page.php doesn’t contain the text that’s referenced on that page.

    So how would I implement that, to get pagenavi working on multipart pages?

    Here is what I suggest may work with this type of theme.

    We need to:

    1. Create a new content-navi.php template that will have in it just:
    <?php wp_pagenavi( array( 'type' => 'multipart' ) ); ?>

    2. Edit page.php to add in the new template part just above
    get_template_part('content', 'YourTemplateName');

    For more specifics please post your page.php file at pastebin (actually do that so we can see if that also has just a specific array that we do not want to mess with)

    Note: Are you using a Child Theme?

    And, FYI, Scribu and Lester Chan are the plugin Authors.

    Please use the plugin from here (and not another source):
    http://ww.wp.xz.cn/plugins/wp-pagenavi/

    Thread Starter agfreesafety

    (@agfreesafety)

    Nope, not using a child theme.

    Here’s my page.php.

    Thanks!

    Great! So you can test what I suggested.

    Create the new file content-navi.php as noted above. Upload. Then edit page.php as follows:

    <?php get_header(); ?>
    			<?php get_sidebar('top'); ?>
    			<?php
    
    			if (have_posts()) {
    				/* Start the Loop */
    				while (have_posts()) {
    					the_post();
                                            get_template_part('content', 'navi');
    					get_template_part('content', 'page');
    				}
    			} else {
    				theme_404_content();
    			}
    			?>
    			<?php get_sidebar('bottom'); ?>
    <?php get_footer(); ?>

    Note, you can go a step further and create a custom page and then create a specialized page template for it, and not affect any other pages.

    When you pull this all together, please report back on results.

    Oh, and any changes to a parent theme are lost on theme update, so again, a Child Theme is greatly encouraged.

    Thread Starter agfreesafety

    (@agfreesafety)

    I will give it a shot. Oh, and the theme was custom made, so there shouldn’t be any updates coming down-the-line.

    Oh, and the theme was custom made, so there shouldn’t be any updates coming down-the-line.

    That is, sadly likely true, which means you will not know (easily) if the theme is out of date (until you start to have issues).

    Thread Starter agfreesafety

    (@agfreesafety)

    I’m getting the below error when I go to my homepage now:

    Fatal error: Call to undefined function wp_pagenavi() in /home/content/33/9732833/html/wp-content/themes/Wp/content-navi.php on line 1

    This is what my content-navi.php looks like right now.

    What did I do wrong?

    And this is what my page.php looks like right now.

    You did activate the plugin and all server cache is cleared?

Viewing 15 replies - 1 through 15 (of 30 total)

The topic ‘How to Create Numbered Links Between Posts?’ is closed to new replies.