• But I keep getting the following error:

    Fatal error: Call to undefined function: have_posts() in /home/pensa4/public_html/news/index.php on line 117

    Any takers as to why? WP is installed correctly (I’m 99% sure) but I just don’t know what this error is or why I’m getting it.

    Let me know if you need more info to solve and thank you so very much in advance.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Yes, we need more info.
    What exactly are you doing? (“trying to insert” is not enought… describe the steps)

    Thread Starter ATC

    (@atc)

    Moshu- I am trying to implement wordpress as a news blog tool in my existing news page. So, for example, if one of our staff want to upload a news story, it will do so on the fly into our current layout. Right now, I have the news page saved as https://www.pensatos.com/news/index2.php (because WP took up my index.php page when I uploaded it into my server). So, if you look at index2.php, you’ll see the code I reference above.

    In essance, I’m trying to make a news feed that I can just type news stories and they automatically upload onto the this page using the WordPress code.

    Let me know what other info you need!

    ATC, many people do what you want by putting an RSS reader into their page and then get it to pull the RSS feed off your WP blog. RSS Aggregator I guess is what they are called. That way you can pull the recent news off more than one blog as well.

    Trent

    Thread Starter ATC

    (@atc)

    I don’t want to pull from others. We write our own material. I just want to set up an internal word doc kinda setting where anyone on our staff can write a story then upload it. I was told WP would be perfect for this. Am I wrong?

    Thread Starter ATC

    (@atc)

    Any help would be so greatly appreciated! I’m at a lost.

    I just want to set up an internal word doc kinda setting where anyone on our staff can write a story then upload it. […] Am I wrong?

    Probably, yes.
    Do you have WP installed? Then you could see: there is nothing to “upload”. You write the posts in WP.

    The solution suggested by Trent works perfectly with your own blog, too – not only “from others” as you wrongly assumed. (Never assume until you’ve tried the solution offered!)

    Furthermore: if you have WP installed in the “news” folder you cannot “insert” WP in anything there. That folder is your WP blog. And you cannot use any other index file than what WP came with (in that folder).
    Of course, you can always make a theme that looks like the rest of the site and you are done.

    If you want to pull the WP posts in some other folder’s index or in the main page of the site – search for “integrating WP” and similar keywords.

    The RSS method will always work everywhere.

    Any other solution will require to make the display file “WP aware” by putting this at the very top of the file, before anything else:

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

    Thread Starter ATC

    (@atc)

    Moshu: no need to talk down – which you kind of have this snob way about you. But I do appreciate your suggestions. I may be using the wrong verbage when requesting what it is I’m trying to do, but it’s ultimately the same as what you speak.

    Try and be a bit nicer to someone who is really looking for help on a specific issue.

    If I am understanding what you want..
    I did the same on my page..

    What I did is using wp only as a backend. I wrote my own frontend. In your page, you want only to show your latest news, right? You retrieve the latest post from wp’s database, and echo it to the webpage.

    You can also show latest posts, etc. Not only one post.
    Take a look here: https://www.streamkid.de/~alex/?act=weblog
    This is what I ‘ve done.

    If you want to do something like this, just email me, I can send you my code. (streamkid [@] gmail [.] com)

    Alex

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Trying To Insert WP In News Page…’ is closed to new replies.