Viewing 10 replies - 1 through 10 (of 10 total)
  • moshu

    (@moshu)

    Use The_Loop.

    Thread Starter krush

    (@krush)

    Interesting.

    I insert the loop code into my website then, which is outside of the wordpress blogs folder, not the folder where wordpress is installed ( /blog/ ).

    If that is correct how does the root index.php know where the wordpress blog is?!

    All ‘The Loop’ page tells me to do is insert this into my designed php page outside the wordpress directory:

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

    and

    <?php endwhile; else: ?>
    <?php _e(‘Sorry, no posts matched your criteria.’); ?>
    <?php endif; ?>

    then I presume I include

    <?php
    include (“/blog/index.php”);
    ?>

    ?

    Thread Starter krush

    (@krush)

    Or do I create a php file inside the wordpress folder containing just the following:

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

    and

    <?php endwhile; else: ?>
    <?php _e(‘Sorry, no posts matched your criteria.’); ?>
    <?php endif; ?>

    the call that file from my site outside the directory :S

    Thread Starter krush

    (@krush)

    I’m getting allsorts of errors trying the second method.

    Any ideas?

    moshu

    (@moshu)

    Oh, sorry, I thought you know more about it.
    Just insert the Loop thing into your root index and at the top of the file (=root index.php) add this, before everything:
    <?php
    require('./path-to-your-blog/wp-blog-header.php');
    ?>

    After this you can use any WP function in that file.

    Thread Starter krush

    (@krush)

    moshu,

    thanks for your time, i managed to get my /blog/ news on my front page!

    all i have to do now is make the actual single blog pages look like my site, is there an easy way to doing this?

    one method i thought of would be striping the single blog entry bare and having it load in a pop-up box.

    the downside of that being no search engine optimised pages can be found :/

    Kafkaesqui

    (@kafkaesqui)

    Have you thought about breaking down your site’s design into a WordPress theme?

    https://codex.www.ads-software.com/Theme_Development

    moshu

    (@moshu)

    all i have to do now is make the actual single blog pages look like my site, is there an easy way to doing this?

    No, there isn’t. But if you manage to make the single.php to look like your site… you are one small step away from having a full theme that looks like your site ??
    It all depends on your knowledge of html and css. Because WordPress is not PHP.

    Popup box – not a good thing if you care about your visitors. People hate it.

    Thread Starter krush

    (@krush)

    Hey

    I’ll spent a few hours working on single.php tonight

    Thanks for your help

    I got this post after about a week of searching, and have put the code in my file, and it is working. Now, my index page is asp, so I put a meta refresh to index.php, where the posts will show up.
    You can check this out here: https://www.des-us.com and my main blog is at https://blog.des-us.com.
    Any ideas or other ways of doing this would be appreciated, as I dont want to use metarefresh.
    I am also working on integrating the post design to my site.
    Thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Just the blog posts and thats all..’ is closed to new replies.