WordPress.org

Ready to get started?Download WordPress

Forums

OK, I am totally lost. How do I make this work? (16 posts)

  1. wsdesigns
    Member
    Posted 7 years ago #

    I installed and everything is working fine. It is all just dandy. But how do I make my news appear onto my already made index.php? I plan on using wordpress as a news script, but how do i over-ride the templates to make it for my own layout?

  2. wsdesigns
    Member
    Posted 7 years ago #

    like, i'm looking for a
    <php include("SOMETHING");?>
    or something along those lines, so that it just includes my latest news, and doesn't edit my nav bar or anything.

  3. PozHonks
    Member
    Posted 7 years ago #

    A link to your site, please, we can't guess.
    And, if I understand correctly, you have to create your "own" template to call WP data.
    For example, you can start reading this (it takes time):
    http://codex.wordpress.org/Templates
    then this:
    http://codex.wordpress.org/The_Loop
    and this to go further:
    http://codex.wordpress.org/Template_Tags

    Or, find an already existing template that is working the way you want, and replace the layout by yours.

  4. wsdesigns
    Member
    Posted 7 years ago #

    http://winter-storm-designs.alamoria.net/
    it's just a graphics site, i want to make wordpress into a news script... i don't want any fancy stuff, just the latest entries to display on index.php... and i want to be able to change my layout without having to make.. templates or whatever.

  5. PozHonks
    Member
    Posted 7 years ago #

    Now I see. Why not including the WP RSS feed into your website? You have to find a good php script that will connect to the RSS feed of your WordPress, and copy the content online. WP doesn't do this, you need to find a third party script (after called, syndication, rss feed reader, syndication, etc.)
    But, you have to install a plain WordPress for example here:
    http://winter-storm-designs.alamoria.net/news/, where "news" is the folder where you have installed wordpress, and then, you configure your online RSS feed reader to connect to:
    http://winter-storm-designs.alamoria.net/news/feed/ to retrieve and display the news.

  6. wsdesigns
    Member
    Posted 7 years ago #

    Okay, where would I find this RSS script you speak of?
    And, I changed the wordpress to /news/, like you said =D

  7. PozHonks
    Member
    Posted 7 years ago #

    As always, Google is your friend:
    http://www.resourceindex.com/
    http://www.hotscripts.com/

  8. moshu
    Member
    Posted 7 years ago #

    You should NOT remove the "short and sweet" index.php file from your WP installation directory (=news)!

  9. wsdesigns
    Member
    Posted 7 years ago #

    O_O which one do I use?? There are like, a million.
    And what exactly is this going to do???

    Sorry for all the trouble, but I'm so new to this, it's not even funny.

  10. moshu
    Member
    Posted 7 years ago #

    Well, first of all, try not to be "smarter" than WP - if there is a package you MUST upload all the files. There is only ONE index.php in the root (main) directory of the WP package. Why did you delete it?

  11. wsdesigns
    Member
    Posted 7 years ago #

    XD I'm not trying to be smarter. I did upload the entire thing, but into my main directory (this was before i found out it should be in a subdirectory), and i had replaced MY index.php with WP's index.php. I simply went to edit index.php so it would only show the news, and not the templates and such. Apparently, this doesn't work like cutenews, so i uploaded WP's index.php into the /news folder when i changed everything over.

  12. wsdesigns
    Member
    Posted 7 years ago #

    So exactly what RSS feed thingy should I use? God, I'm bad at this.

  13. wsdesigns
    Member
    Posted 7 years ago #

    Argh, can no one help me?

  14. Doodlebee
    Member
    Posted 7 years ago #

    First of all, you should learn a little bit of patience. There's lots of people asking for help, but only a few *volunteers* than can help out.

    From your description, it sounds like you already have an existing website, but you just want to add WordPress to it. What you should do is - first of all, since you've messed up your current installation - remove the current installation. (This also means logging into your host site and deleting your database, then re-create it). Then, upload all of your wordpress files and folders into the folder yoursite.com/wordpress. Then run your installation from there.

    After you've done that, you can open up your current and existing index page (on the site your running right now), and at the top of that file, put in include('/home/your_user/public_html/wordpress_directory/wp-config.php') (you want to use the direct path from your server - NOT the URL, and don't go "relative" because it may get messed up).

    Now, on your index page, you can simply include the Loop where you want the "posts" to show up.

  15. PozHonks
    Member
    Posted 7 years ago #

    @Doodlebee
    Woah! I learned something, including The Loop outside WordPress folder. This tip is far more better than my RSS thing (which is the way to work outside the same website).

  16. Doodlebee
    Member
    Posted 7 years ago #

    Yeah, I discovered this form someone else on the forum (Handy, I think) a few months back. I have a contact form I've developed, and I wanted to use it on my site - he told me how to use *my* script, but utilize the WP stuff for the layout on the form.

    It was such a neat trick that I've used it several times since for clients on their sites - I have one client that wanted a static front page, but she wanted 4 categories (one post each) to show up on the front page...using that trick it was easy to do for her.

    (If you want to see what it looks like: http://www.soulofmoney.org - the text in the header, and the three "blurbs" at the bottom are all category posts - when she wants to announce something new, the new inof pops up in the correct place. And for the record, I *did not* design this site - so not my design. I'm just the one who coded it :) )

    But yeah, it's been *really* handy to know that bitty piece of info. You can do *a lot* with it.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags