Hey, does anyone know how i can code something into the wordpress admin panel so it's possible to upload/link to images for the image slider on the home page instead of having them coded into the pages. I have the admin panel made for my theme i just would like to know how to add this function to it.
jamy that is the tutorial i followed to make my admin panel, just wanted the slider images to be easily edited from the back end for users who wouldn't know how to change the images if they are just coded into the home page. I guess i can just include a text guide to show them.
Anyone have any ideas? Also does anyone have a link to a good navigation menu guide? i am trying to get a jquery drop-down menu on my site but all of them code i have tried just doesn't want to work for me at all.
Oh strange, i can still see the image from that link, it just shows someones admin panel which has all the options for the slider in and also fields for adding image links and what animation for them to have in the slider, not sure what kind of code i would need on the page with the slider to go to the admin panel section and see if there are any images and then display them and to edit the styles of the slider.
What you could try doing is having a post loop inside your image slider set to display posts only of a "slider" catagory (and your other loops not to display that catagory) and you build the loop to display the post exactly in the format your slider needs to function. That way, when you want to add an image to the slider, you create a new post, click the catagory, click your image, post, and wahla! it's added the image into the slider. And you can remove images by deleting the post of the image you don't want.
Ok i have managed to make it work i think, but in the recent posts widget it shows its name which i don't want it to do is there any way to stop that happening now? Wish i could just find a tutorial to just add this to the admin panel :(
Edit; just came up with the idea of just grabbing the image from the latest portfolio items, think that will work a bit better.
There should be an option on the recent posts widget to exclude one or more categories (at least I hope it would), if not, just run your own recent post loop. Sometimes in wordpress in order to do something like this we have to get a bit more down and dirty. It happens sometimes.
Btw, this wordpress post loop slider sounds like a lot of fun to build. I know I'm doing this weekend :)
Is there any way to exclude the image in a post without using the_excerpt, as i am using the timthumb script to crop the images and if i add that to the post page it shows 2 of the images, so id like to disable the original from showing. I dont know how this is really going to work because if the images are too small the slider looks bad, i still think adding it into the admin panel is the best and easiest for someone, it is slowly just getting me frustrated :(
If it's showing the original and the cropped (which is what I think im gathering from your post) then there might be a conflict between your image cropping script and your slider script. Do you have a link to the site? If worse comes to worse, can you remove the cropping script and do it manually?
well the getImage function is just getting the image from the post and just cropping it, so i kind of knew it would make a second copy of it, so i wanted to stop the image the_content function is putting out so only the cropped one is actually shown. Seen people say to change content to excerpt but i want to keep the text editing functions so thats not really an option i dont think.
site link is www.lsw-design.com/tf/darkgreen
So if anyone know how to disable the image that would be a big help, or even better suggest how to add the slider options into my admin panel.
why do you need to crop it in the first place? the slider should hide the img overflow if its too big by default. cropping it before putting it in seems like an extra step. you just need to make sure your images are the same width.
If I was using a multi-page JavaScript slider on a WordPress site, I think what I'd do is have the homepage build the slider from a custom loop with query_posts(). Inside the loop, I'd make whatever calls needed to build the needed HTML, link up images, etc.
As far as uploading images, just use the WordPress built-in file manager. The images are then associated with the post and you can access them in the loop. Or what I do a lot of times is save the file path as a custom field and access it that way.
Thanks,
Luke.
I think it would be a really cool advanced section for Digging Into Wordpress, @chriscoyier.
@lukewilde I'm not too sure exactly how this would be done, but you could have a look at this tutorial and see if it helps you at all.
It looks like you would be able to custom fields which you could place the image url into.
Edit; Just saw this http://para.llel.us/theme-graphics/traject-wp/traject-wp-slideshow.jpg
Anyone recognise how he has done this by any chance?
The image you linked to earlier takes me to a 403 Forbidden page.
Thanks for that link, i will try it out.
http://css-tricks.com/video-screencasts/91-the-wordpress-loop/
Edit; just came up with the idea of just grabbing the image from the latest portfolio items, think that will work a bit better.
Btw, this wordpress post loop slider sounds like a lot of fun to build. I know I'm doing this weekend :)
site link is www.lsw-design.com/tf/darkgreen
So if anyone know how to disable the image that would be a big help, or even better suggest how to add the slider options into my admin panel.
As far as uploading images, just use the WordPress built-in file manager. The images are then associated with the post and you can access them in the loop. Or what I do a lot of times is save the file path as a custom field and access it that way.