Page Title Related Help

Discussion in 'WordPress' started by freelance deziner, May 4, 2012.

  1. #1
    Hi,

    Please check the title of the main page of my site here www.inspirefusion.com, it is saying "Art, Design & Entertainment Blog"

    Now go to this page http://www.inspirefusion.com/page/2/, it is saying "Art, Design & Entertainment Blog Page 2 of 25"

    I am using Yoast SEO Plugin to put these page numbers there but I want to show it like this "Art Design & Entertainment Blog - Page 2 of 25". Want to show the (-) dash between Blog & Page.

    Can anyone please help me how to put dash there?

    Thanks
     
    freelance deziner, May 4, 2012 IP
  2. 5Twenty

    5Twenty Peon

    Messages:
    79
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    5Twenty, May 4, 2012 IP
  3. ColorVila

    ColorVila Greenhorn

    Messages:
    55
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #3
    Hi freelance deziner,
    I have answered your question at the other posts for this.

    The current / total page count is set up by setup_postdata() which runs at the beginning of the loop. So, if you're in the loop, all you have to do is this:

    global $page, $numpages;
    echo
    "Page $page of $numpages";


    If you need to do that outside of the loop, do this first:

    global $page, $post, $numpages;
    // This next line is optional: sets a new global $post variable
    $post
    = get_post(123);
    setup_postdata
    ($post);
    echo
    "Page $page of $numpages";
     
    ColorVila, May 4, 2012 IP