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:

    <?php
    require('./path-to-your-blog/wp-blog-header.php');
    ?>

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

    Thread Starter nouman6

    (@nouman6)

    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.

    Thread Starter nouman6

    (@nouman6)

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

    https://www.oakhillbible.com/test/

    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!

    Thread Starter nouman6

    (@nouman6)

    bump

    Thread Starter nouman6

    (@nouman6)

    bump ??

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

    Thread Starter nouman6

    (@nouman6)

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

    https://www.oakhillbible.com/test/

    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:

    Author
    Date
    Title
    BLOG POST
    option to comment

    Read about The_Loop
    (copy/paste)

    Thread Starter nouman6

    (@nouman6)

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

    Thread Starter nouman6

    (@nouman6)

    alright I got that problem taken care of ??

    now I want to pretty much GET RID of the whole:
    https://www.oakhillbible.com/test/blog/

    I mean have no links to it. Right now when a user clicks comment:
    https://www.oakhillbible.com/test/blog.php

    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?

    Thread Starter nouman6

    (@nouman6)

    bump ??

    Thread Starter nouman6

    (@nouman6)

    bump

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