• Resolved sc456a

    (@sc456a)


    I’m looking for something to pull my RSS feed on to my home page, which is not at the WP root. In other words:

    http://www.sitename.com is my home page
    http://www.sitename.com/wp is my WP root

    I want to show my 5 most recent posts on my home page, but can’t use normal WP plugins because the home page isn’t in the WP root.

    I have tried using Feedburner’s BuzzBoost which works but doesn’t give me enough control over the output – even after modifying the CSS.

    Any suggestions would be appreciated!

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter sc456a

    (@sc456a)

    Bump!

    Thread Starter sc456a

    (@sc456a)

    Bump (again)!

    scooby

    (@scooby)

    I know I have seen a way to do this some where.. Am looking..

    Thread Starter sc456a

    (@sc456a)

    Thanks – there are tons of posts but none that seem to address my specific issue. They usually recommend Feedburner, but as I have said that isn’t a very good option for me. I also notice that the BuzzBoost code takes a long time to load on my site, causing loading delays for each page that aren’t acceptable.

    Thread Starter sc456a

    (@sc456a)

    Find anything Scooby? Anyone? I know there is a way!

    Nathan Rice

    (@nathanrice)

    do you have WordPress installed in the root directory too?

    Thread Starter sc456a

    (@sc456a)

    See the OP.

    callaweb

    (@callaweb)

    What about a SpringWidget? http://www.springwidgets.com/widgets/view/355/

    Not the ‘best’ suggestion, but a quick fix anyway! πŸ˜‰

    Thread Starter sc456a

    (@sc456a)

    I’m looking for something that I can setup to look like the rest of my site, preferably using CSS.

    Thread Starter sc456a

    (@sc456a)

    This is sad…there must be some way to accomplish this! It’s such a simple task but seems to be a difficult one to find the answer for. So many people have asked and no one has ever really gotten a simple answer. There must be a way to set this up without using third party utilities!

    scooby

    (@scooby)

    See if this is close..

    http://codex.wordpress.org/Creating_a_Static_Front_Page#Static_Page_with_Mini-Loop

    Thread Starter sc456a

    (@sc456a)

    This is only for use within the /wp folder (in WP itself). See the OP.

    fantasma

    (@fantasma)

    sc456a, with few modifications this code is useful for your needs. I don’t know how can I post here PHP code to show you all the code, but you need change only few lines:

    At header in index.php (www.sitename.com/index.php) you need put the first piece of code and editing the path:

    —-
    require(‘wp/wp-blog-header.php’);
    —-

    and select a place to put the 5 recent posts, adding all the code and editing the path:

    —–
    href=\”wp/index.php?p=%s\”
    —–

    Best Regards,

    Fantasma

    Thread Starter sc456a

    (@sc456a)

    Actually the code only works in the /wp directory if the require for wp-blog-header.php is not included. We’re trying to figure out an if/then statement that would work for this…

    Thread Starter sc456a

    (@sc456a)

    Thanks to the help of a skillful programmer I have finally found the solution in the following code:

    <?php
            define('WP_USE_THEMES', false);
            if(substr(str_replace(basename($_SERVER['REQUEST_URI']), '', $_SERVER['REQUEST_URI']), 0, 4)!='/wp/'){
            include_once('./wp/wp-blog-header.php');
            }
    ?>

    This code basically determines if the user is under the /wp/ directory and if they are doesn’t include the wp-blog-header.php files. It was all I needed and it was a nightmare to get – I hope it can help others!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Looking for a more flexible way to display recent posts’ is closed to new replies.