Support » Themes and Templates » Inject Blog functions into site.

  • Hi!

    I would like to install wordpress and use only minor functions of the blog on my main page. I have read this:
    , but don’t understand it 100%. the functions I would like to add to the site page are:

    – Log in/ log out boxes, and option to register
    – Normal blog, author, date, time, CONTENT, option to comment.


Viewing 12 replies - 1 through 12 (of 12 total)
  • Install WP in a subfolder and if your main page is a .php file, just add this at the very top, before anything else:


    After that you can use any WP function (template tag) in your main page.

    moshu, thank you very much for the help. I am about to leave soon, so I can’t test it right now but when I do I will reply back here asap how it went.

    thanks again for that 😀
    It worked and I got the log in option added to the menu:

    but…it’s harder to understand how to display a blog post then the login option xD

    sorry if this asking too much.

    I would like to show on the front page, only the most recent blog. It should display as a normal blog would, title, date, author then the blog itself, and the option to comment.

    then i’m going to have a separate blog page on the site, here it will display just as the the one before but will display the most recent 10 blogs and the archives.

    thanks for your help so far!


    bump 😀

    Once you have that file prepared you can use any WP template tag to display whatever you want.

    Yes, as I mentioned before I got the tag for log in to work and it is shown in the navigation now:

    what I don’t get is how to display a full blog (just the posted blog part) There is something about having to be inside “the loop ” and I don’t understand so I was wondering if anyone can create a loop code for just a normal blog display:

    option to comment

    Read about The_Loop

    how can I get the […] in the <?php the_excerpt(); ?>
    code to link to that blog post as a whole?

    alright I got that problem taken care of 😀

    now I want to pretty much GET RID of the whole:

    I mean have no links to it. Right now when a user clicks comment:

    when the hit comment they go back to that blog, I want that to be a page in the site.

    How can I do this?

    bump 😀


Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Inject Blog functions into site.’ is closed to new replies.