if not all content is required, then why not extract the information from your rss feed rather than individual posts and pages? i saw your post when you first posted and still not really sure what you want to accomplish except you want a news page. i am assuming you what to extract your posts and put them on your news page?
take a look at my website "onlinecheapo.com" in my sidebars i have extracted information from my posts through my newsfeed on wordpress. once i make a post in wordpress which will affect my main wordpress page and the specific page the post is on, it will, my main page will automatically update to include the new posts. i think i have it set to show about 100 characters since it's in the sidebars. this can be changed ofcourse. if this is something you were looking for, let me know.
| |
|
Welcome to KnowledgeSutra - Dear Guest | |
Embedding Wordpress Posts In Other Pages
Started by mrdee, Feb 19 2011 08:27 PM
13 replies to this topic
#12
Posted 08 March 2011 - 01:39 AM
OK, I'll make it perfectly clear:
Go have a look at http://www[dot]vlaanderen-flanders[dot]org[dot]uk/news[dot]htm.
At the left yuu will see a menu, this I want to leave as it is (keep it), and at the right, you will see some news articles, sorted by date, but all written by hand in HTML and no comments possible unless (like on the top one) I add a form myself that users can fill in to submit a comment.
It is that right hand side content I want to be replaced by Wordpress content instead of using static HTML, that is all.
(Having said that, "that is all", means, "that is all I want to achieve", achieving it is quite a different matter).
Go have a look at http://www[dot]vlaanderen-flanders[dot]org[dot]uk/news[dot]htm.
At the left yuu will see a menu, this I want to leave as it is (keep it), and at the right, you will see some news articles, sorted by date, but all written by hand in HTML and no comments possible unless (like on the top one) I add a form myself that users can fill in to submit a comment.
It is that right hand side content I want to be replaced by Wordpress content instead of using static HTML, that is all.
(Having said that, "that is all", means, "that is all I want to achieve", achieving it is quite a different matter).
Edited by mrdee, 08 March 2011 - 01:40 AM.
#13
Posted 08 March 2011 - 02:52 AM
that didn't answer my question. a lot of wordpress themes include a newsfeed. if yours doesn't, then it's not hard to do. after you create an rss feed, you take a script that can not only grab the content off that feed but is also able to post it on a seperate page or even website. you have php scripts that you can use to do this that are already coded. you don't have to code anything.
i showed you an example of pulling a newsfeed and posting it. the difference between my example and what i think you are asking for is mine is embedded in the sidebars where you want yours embedded in the content area with more content from the newsfeed and for your news page. when you make a script to do this, there is no limitation where you put the script.
i'll make a sample page and see if it's what you are looking for...
ok. done creating a sample page. it's "onlinecheapo***DOT***com/news***DOT***html" as you can see, i can keep my sidebars the same and implement the script in the body of the page. the script is the exact same script running on the right side of the page with the only difference being that i changed the settings to add more news per my rss feed. you can see where it is is taken from if you go to my blog and click the rss feed button at the bottom of the page.
now if this is not what you are looking for, please let me know. i am done trying to figure it out if this isn't what you are looking for. the only difference that i can tell is that the content is being grabbed from an rss feed rather than the database where word press posts are stored.
i showed you an example of pulling a newsfeed and posting it. the difference between my example and what i think you are asking for is mine is embedded in the sidebars where you want yours embedded in the content area with more content from the newsfeed and for your news page. when you make a script to do this, there is no limitation where you put the script.
i'll make a sample page and see if it's what you are looking for...
ok. done creating a sample page. it's "onlinecheapo***DOT***com/news***DOT***html" as you can see, i can keep my sidebars the same and implement the script in the body of the page. the script is the exact same script running on the right side of the page with the only difference being that i changed the settings to add more news per my rss feed. you can see where it is is taken from if you go to my blog and click the rss feed button at the bottom of the page.
now if this is not what you are looking for, please let me know. i am done trying to figure it out if this isn't what you are looking for. the only difference that i can tell is that the content is being grabbed from an rss feed rather than the database where word press posts are stored.
#14
Posted 08 March 2011 - 12:15 PM
Thanks again for your reply, anwii.
Looking at your sample page (thank you for making that example), I would say that is what I want.
I notice that the left and right sidebars have remained intact and that your content in the body is as I would like it.
So, just to recap, I want everything on my page left as it is (header, sidebar menu), except for the body where I want the content to appear as it does on your page, namely as blog entries, rather than articles which I have written in HTML.
You also talk about creating an RSS feed here, don't forget you are dealing with an ignorant bum here (although one willing and eager to learn), I roughly know what RSS feeds are, but don't ask me to create one as I haven't got the faintest idea how to do that.
My knowledge, unfortunately, goes as far as ceating pages using just HTML, the rest I am trying to learn.
Also, when you tell me to look where you get the code from by clicking on the RSS feed button, when I do that, what I see is a page full of plain text, is that right?
Sorry if the things I am saying and asking here sound dumb, but, as I mentioned, my knowledge needs to be extended a great deal, which is why I come here often to get advice from experienced people.
Thank you for all the help you have given so far.
Looking at your sample page (thank you for making that example), I would say that is what I want.
I notice that the left and right sidebars have remained intact and that your content in the body is as I would like it.
So, just to recap, I want everything on my page left as it is (header, sidebar menu), except for the body where I want the content to appear as it does on your page, namely as blog entries, rather than articles which I have written in HTML.
You also talk about creating an RSS feed here, don't forget you are dealing with an ignorant bum here (although one willing and eager to learn), I roughly know what RSS feeds are, but don't ask me to create one as I haven't got the faintest idea how to do that.
My knowledge, unfortunately, goes as far as ceating pages using just HTML, the rest I am trying to learn.
Also, when you tell me to look where you get the code from by clicking on the RSS feed button, when I do that, what I see is a page full of plain text, is that right?
Sorry if the things I am saying and asking here sound dumb, but, as I mentioned, my knowledge needs to be extended a great deal, which is why I come here often to get advice from experienced people.
Thank you for all the help you have given so far.
Reply to this topic

1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users















