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.
Related
I just wondering whether http://www.shoutmeloud.com/videos is a subdomain under subdirectory?
I am just curious to know how we can do that.
I have a website called http://quantumbuddy.com/ and I want to share spirtual video the same way here shoutmeloud did.
Can anyone let me know how they did?
The website Shoutmeloud is a very popular website of a very popular Indian blogger Harsh Agarwal. The website is WordPress built as told by him many times. Regarding your question - the http://www.shoutmeloud.com/videos is not a directory because if it had been a WordPress directly there would be a login url - http://www.shoutmeloud.com/videos/wp-login.php, but it is not there.
Seeing the design of http://www.shoutmeloud.com/videos i think it is a post category (videos) which shows the post contained in it(here videos).
In wordpress this comes by default, all you have to do is to create a post category and add post in it. Then in these post add youtube videos embed code.
You can easily achieve that by going to your wordpress dashboard then add a new page and name it like videos then insert some video files there whether it's a link or from your uploaded videos then save it.
To check the page, Add it to your main menu for example then save it.
The url would be like http://quantumbuddy.com/videos.
so basically the videos is the name of the page.
I checked your site and it only contain one link in the menu. Add a page and add it to your menu bar and it would display next to the Blog link.
The website you are referring to is using Genesis Theme. You can find it here
.
I've been asked to integrate a blog into an existing website.
The blog content will be hosted with an external blog provider (im thinking wordpress and blogger) and I would then import the posts onto the clients site via an ATOM feed as this is the simplest way I can see of doing all this.
The issue I'm facing is that when the blog list is displayed on the clients site they want to use a grid based layout with a cover image. Another stipulation of the design is that the cover image should also not be part of the actual blog post content.
Ideally it would be great if the blogging provider (wordpress/blogger) supported uploading additional metadata and images that do not go into the blog post's HTML content.
I cant find any way of doing this currently and am wondering if I have any options other than rolling my own mini blogging platform for the client or installing wordpress locally and setting that up.
Any ideas?
WordPress will let you upload a custom header image. See: http://codex.wordpress.org/Custom_Headers - this will be useful if you want the same header image on every page. If you want a different header image 'per post' then you'll need a plugin to do that. There are some good plugins that do that in the WP plugin repo: http://wordpress.org/plugins/
So I am trying to do this and I don't know how. I have a wordpress powered website with a plugin called "frontier-post" in it. This plugin makes a new front-end post submission. The way to use it is to put the shortcode "[frontier-post]" in any post in my wordpress page and that page turns into this.
I want to make a custom page for myself, where I can have the content created by this plugin there too. So I do not want it to be a post in my wordpress, but lets say at a corner in the custom page. I have searched and found these but the suggestions there would not work. I am able to include the wordpress so that the custom page has access to posts, etc. but even using this
echo do_shortcode('[frontier-post]');
would not help me. (even if header is included)
These are the similar things i found:
Wordpress/PHP - How to use plugins outside wordpress-powered pages?
Need Help for my Custom Page Template
I would really appreciate it if you could help me with this.
If you are creating a PHP page that isn't going to be rendered inside WordPress, you can't use a Plugin of the WordPress engine to accomplish what you are wanting to build. (As the accepted answer to one of the pages you link to indicates).
Instead, you might be able to use the json-api plugin and have your custom page query it for the data. While it won't render the shortcode, it will give you the raw data to work with.
http://wordpress.org/plugins/json-api/
Edit:
Based on a comment, your do_shortcode should work...just try it without the square brackets.
I am working on a WordPress site for a client and want to know where the styling for the blog would be located. The blog can be viewed here http://ruthcrocker.whoistheoldguy.com/blog/. Pretty much what I want to do is make the whole blog page narrower and centered to match the styling of the rest of the site. Then place the categories and subscribers to the right and have the most recent blog posts in the middle. Does anyone know how this can be achieved?
See Theme Development in the Wordpress Manual.
The basic stylesheet is located here:
http://ruthcrocker.whoistheoldguy.com/wp-content/themes/ruth/styles/style.css
But I would have a look at:
http://codex.wordpress.org/Theme_Development
For development instructions and advice
Is it possible to create an image gallery in wordpress that is managed by the admin via it's own page / panel. I am not talking about creating a new post and adding custom html for each image. I mean actually having a page in the admin that has the ability to upload and manage your images?
If it is possible how do you go about creating a custom page like this? I understand the PHP side of uploading and manipulating images, but I don't know how to integrate it with wordpress. I don't need a full blow tutorial on how to do this, but if you could just point me in the right direction that would be great.
One issue that comes to mind right away, is if this is possible would upgrading wordpress break the code? Since I assume you have to edit the admin files directly and you can't just do it from your own custom template?
From playing around I found NextGEN Gallery (http://wordpress.org/extend/plugins/nextgen-gallery/) that has a tab in your admin panel. It looks like it would meet your needs.
You can manage all your media from the WordPress Media Library using tags if you install Tag Gallery
It requires the Media Tags plugin but it makes managing galleries so much easier and your using the built in media facilities of WordPress so it's not disjoint from the experience. There is a new version in the works that will offer much more impressive functionality as well.
Hope that helps.
There are a huge amount of image galleries for wordpress already made. Have a quick google for some (search "wordpress image gallery") and see if any of them are suitable (I'll be surprised if one of them isn't).
Failing that, you'll need to create yourself a Wordpress Plugin.
I've integrated ZenPhoto into my wordpress blog. It was pretty easy, would probably take you a few hours. The admin pages are completely separate from the wordpress admin pages, so you can easily give access to only one person.
You can create a custom post type called Gallery to manage create and manage image galleries. The post will have its own "Gallery" panel in the admin section and from there you can add new galleries just as you describe. There are lost of tutorials for creating gallery custom post types.