Embedding a live chart from an external page into Wordpress post - wordpress

My wordpress site has a blog on the homepage, e.g. www.myblog.com.
I made a web app in Flask (a Python web development framework) which has the url www.myblog.com:8000/chart1
I want to show this within a post on my homepage/blog. If this is possible how can I do this?

An iframe should work. WordPress strips iframes out of the post editor, but you could either hardcode the <iframe src="www.myblog.com:8000/chart1"></iframe> HTML into a specific post type or something. I think a simpler option would be just to use a plugin like Iframe Shortcode:
Iframe Shortcode
Install/activate that and it'll give you an option to insert a shortcode into your post content.

Related

Wordpress blog snippet on HTML web page

Trying to figure out if there is a way to take a snippet of a wordpress blog, same site, same hosting, and plug that into a pure HTML page.
Example... I want to show the title of the blog, and first 150 characters. With a link to ..."read more" which would take the visitor to the actual blog.
Widget? or custom type of coding?
One way that WordPress exposes blog output to other applications is through the RSS feed.
It is often available by URL at
"http:// your-Wordpress-Root-URL.com/ feed".
You can use that URL in a 3rd-party widget that you use via HTML/JS on any HTML page.
They'll give you the code snippet to drop in your page.
And they'll have different options to customize things like the number of blog entries to show, and the length to preview - as you mentioned.
I'll paste a couple links to start with, and you can easily search for more online with something like "RSS feed widget" in google.
https://www.rssinclude.com
http://www.webrss.com/
http://www.rssfeedwidget.com/

wordpress blog with jsp

I have to set up wordpress blog. my problem is, i am using spring/jsp for website development, so the url and port number are different for wordpress(php) blog and the website. I have to integrate the blog in the site which currently i am doing using iframe.
But with iframe, the problem is i can't calculate the height of iframe as it is on a different url, so i have to make footer fixed and only the blog part will be scrollable.
Is there any way or any alternative to integrate wordpress blog?
WordPress has an rpc-api. You can use it to query for the articles, but then you have to render them by your own.

Wordpress plugin shortcodes in page html

I'm somewhat new to Wordpress. I'm primarily a front-end web designer, and I use Wordpress plugins for things like dynamic content, forms and really anything a client requests that I do not know how to write code for. Unfortunately, I share the frustration of many designers/developers who complain about Wordpress' html sanitization. Thus, I write the majority of my html directly onto the page templates rather than using the Wordpress editor. I only use the Wordpress editor for small sections of my pages where I need to insert a plugin shortcode -- for a form or something. This works well until I need to use multiple plugins on one page. For instance, if I need a form plugin at the top of a page and a google map at the bottom, then I have to code all of the html in between those two elements into the Wordpress editor, which I would rather avoid.
My question -- is there a way to use Wordpress plugins in the page template html instead of using the shortcodes in the Wordpress editor? If I had it my way I'd never have to use the Wordpress editor for non-blog content.
Thanks,
Scott
Use wordpress do_shortcode();
e.g. echo do_shortcode('[gallery autoplay=no]');

WordPress - Preview of latest wordpress blog post in iframe

I have a website and a blog. I want to insert an iframe into the website, displaying the latest post from the blog.
So I need just the post content inside the iframe, without wordpress headers and sidebars.
Whats the best approach to achieve this?
Thanks for help.
If the site and the blog are on the same domain, you may be best off querying the latest post using the Wordpress API itself, making it unnecessary to fiddle with an iframe.
How to do that is described in Integrating WordPress with Your Website on the WordPress Codex.
If you need to do this using an iframe, I guess it's easiest to set up a new theme that doesn't display anything but the post itself. That would be some work though.
I recently put together a video tutorial of how I did this: http://www.youtube.com/watch?v=7GuocgQlCmw
I didn't get rid of the WordPress sidebar, but the tutorial shows how I used Firebug to get rid of parts of the header and the same technique should work for the sidebar. There are links in the youtube description to all the reference material I used including a link to a blog entry I wrote describing the process.
This doesn't really answer the question but why don't you use Wordpress for all of your website if you use templates you can make it look like a website and also have a blog. Have a look at this site i made using just Wordpress http://www.smkrc.co.uk. By doing this you would have access to the posts and would not need to use iframes.

Iframe implementation for Wordpress

Does anyone know a way to implement an iframe on a WordPress website. Every time I place the code onto the correct page, wordpress strips my code and the iframe breaks.
I was wondering if there was a plugin that allows iframe code to stay intact or if there is some form of shortcode to use.
I have tried:
[iframe url="http://www.youtube.com/embed/X3kLPtVjjhA" width="579" height="360"]
[fixiframe url="http://www.youtube.com/embed/X3kLPtVjjhA" width="579" height="360"]
and installed the "embed iframe" plug-in on my site but none of them seem to work.
I appreciate the help.
You don't need an iframe to post a youtube video, but to answer your questions about iframes in wordpess..
I am not sure what those plugins do. You can create page templates and have iframes in your pages without using any plugins.
Create a new page template and add the iframe in the php code for that page template. More specifically, create a copy of page.php and rename it. In the comments at the beginning of the file, edit the line with the template file name to Template Name: MyPage. Edit the page code and add iframe code where you need it. And select this template (MyPage) as the template for your page in page edit section wp-admin.
You can also add the embed code as meta information to page in wp-admin, and fetch this meta information in the code to display the iframe. In this way, you can use different iframes for different pages with a single template.
Let me know if you need help with this. I will post a complete solution
Why are you using an iframe to load a Youtube video, you should use the embed tag that they show under the video...
I have iframes in my wordpress for all the Facebook/twitter buttons and they work great!

Resources