Forums

Page title outside of loop? (9 posts)

  1. Martyyy
    Member
    Posted 3 years ago #

    Hi, i want to display the title of any post/category/etc in the footer of my blog just like in the header (so any page the user is on is displayed just like in my header, but in the footer).

    Anyone know the code i could use to do this?

  2. Martyyy
    Member
    Posted 3 years ago #

    Anybody? :(

  3. rmk80
    Member
    Posted 3 years ago #

    see if your theme has a footer.php

    insert this

    <?php wp_title(); ?>

    where you would like your title
    see if that works for you!

  4. vachi
    Member
    Posted 3 years ago #

    put this code in a div too like <div class="footer_title"> <?php wp_title(); ?> </div>
    and in your css make this footer_title style, with this you can position and style the title

  5. Martyyy
    Member
    Posted 3 years ago #

    <?php wp_title(); ?>

    This code doesn't work, is there anything else i can use? Nothing at all shows when i use this code in my footer.

  6. Martyyy
    Member
    Posted 3 years ago #

    I think i need a code for outside the wordpress loop, something to go back and grab it from the DB.

  7. Martyyy
    Member
    Posted 3 years ago #

    Is nobody able to help? Please? :(

  8. Xamataca
    Member
    Posted 3 years ago #

  9. greenflag
    Member
    Posted 3 years ago #

    I have the same issue. <?php wp_title(); ?> will not print anything in my footer. any other suggestions?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags