Many Wordpress themes have a section that contain gallery, images, video etc.
I want to create something like this. But I don't know how should I do it.
Should I create a custom post type for this media section only and then query it?
Should I query posts from default post type?
Or just create a static page with media items and then include it to the homepage?
Maybe create a shortcode?
What is the most appropriate way to do this? How the most of developers do it?
Please, help me.
There are many free and premium gallery plugins available for same work. All you have to do is implement the shortcode in your page where you want to display the media,
Related
I got a problem :/
I have a plugins for the users can send files for my media gallery, this is working perfeclty, but, I want to show my media library in a page or post of wordpress. This is possible ?
I guess i need a plugin or script right ? Thx :D
I dont know if you are talking about wordpress.com or wordpress.org but it should be the same.
Use the [gallery] shortcode in your page/post and it will output your images from your media library. You can specify images by using their id's, read more about it here:
http://codex.wordpress.org/Gallery_Shortcode
If you want to display other file formats, it is possible.
I am making my first custom WordPress theme and i ran into my first big wall.
I have different content. I have videos and articles and photos. I need to display these pages differently.
Should i just add a category and display them differently that way? i think this is easy but i am having trouble Googling this problem.
You can create custom template for each page and then set them according to your requirement.
Reference Link
Example Link
this may help :
Creating_Your_Own_Page_Templates
wordpress custome Pages
I am about to build a Wordpress theme for a non-blog website. I am familiar with the basic post/page concept and I used to set a static page being the front page.
Now I want the fron-page to change *its background image* and a little part of its content every few seconds (Here is an example of what I am trying to achieve.)
I already know how to develop the javascript and HTML part of that! I would like to know how to make those changeable items (background-image as well as the small content) to be managable in the Wordpress admin area (Since that's the whole point o a cms, right :-)).
How would you do that? Is there a plugin to connect custom contents like that? Or do I have to build my own plugin? I would appreciate your thoughts :-)
The rough steps to take:
Create a custom posttype
In the supports option enable thumbnail
Create a few posts with a featured image (and other data you want)
Fetch your posts using WP_Query
Loop your posts.
Do JS magic.
questions? ask.
I am designing a WordPress theme and would like to post recipes. The text (ingredients, etc.) will go into the main post window, but I would like to include a picture, which should become the background picture of the whole window. The usual Upload/Insert includes the picture into the post. Is there any better way of associating a picture to a post? Should I use the Custom Fields for this?
To make your life easy i recommend a plugin for that The Advanced custom fields
Its very easy to use. You can get full documentation here
This plugin always save my development time.
Hope it will help
Check out WP-Alchemy.
http://www.farinspace.com/wpalchemy-metabox/
It's incredible. It can be implemented into a plugin, or a theme. I have used it and it works great!
Otherwise, the term you are looking for is "Wordpress Custom Meta Box" throw that in google, and you will get more info than you probably wanted.
If you are more of a wordpress codex junkie, check out the add_meta_box function.
http://codex.wordpress.org/Function_Reference/add_meta_box
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.