bondbloke
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Check for oldest post…I hadn’t got that far quite yet. What I am doing is creating a photoblog theme with Next\Previous links and picking up the url of the full size image to read the exif data; however when it comes to the oldest post the url is not being picked up. Therefore I thought that if there were an easy way of checking for the oldest post this may aid me to get the required url for the image in that particular post.
This is the relevant piece of code:-
$size = "full"; $photos = get_children( array( 'post_parent' => $post->ID, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID') ); if ($photos) { $photo = array_shift($photos); $result = wp_get_attachment_url($photo->ID, $size); } $imgurl = $result; $exif = exif_read_data($imgurl, 'EXIF');but for some reason when I get to the oldest post $photos is empty.
Forum: Themes and Templates
In reply to: Retrieving Exif DataThanks i_g you’re a genius, that works perfectly…
Forum: Themes and Templates
In reply to: Retrieving Exif DataThanks for that i_g_wright, I have read that through several times, and tried most of what is suggested, but it only seems to work in the context of a gallery which is not what I am trying to do.
What I am trying tp do is have a single post with a photo and the exif data next to it with next and previous links to work forwards and backwards through the images. At this point everything I try returns no information at all. My thinking is that when WP (on uploading) creates smaller images it wipes out the exif data on these smaller images, which has to be retrieved from the original image, and that is what I can’t get my head around right now.
Forum: Themes and Templates
In reply to: Next / Previous NavigationI am trying to create a photoblog theme – single image on front page with next/previous links to move through the images. What I have at present is pretty basic, as I want to get everything working first. My problem is that on the home page the previous link seems to default to the current post rather than the previous post. What I have at present is:-
<div id="photonav"> <!-- Prev/Next Nagigation --> <?php $wp_query->is_single = true; ?> <div class="previous"><?php previous_post_link('%link'); ?></div> <div class="previous"><?php next_post_link('%link'); ?></div> </div> <!-- End Prev/Next Navigation -->I would very much appreciate any thoughts.
Forum: Themes and Templates
In reply to: Using wp_nav_menu()You’re a genius Chip! That is the obvious solution, so b’y obvious that I didn’t even think of it… says he banging his head against the wall.
Forum: Themes and Templates
In reply to: Using wp_nav_menu()Interesing, but not quite sure how I would use it as I am only taking my first tentative steps in theme development…
Forum: Themes and Templates
In reply to: Mystique install problemNot using multisite. Even tried installing it on my development installation of WP on my PC with the same result – it simply refuses to show on the Themes page, just palie weird…
Forum: Installing WordPress
In reply to: Already installed errorFYI I am running:-
Apache/2.2.9
PHP/5.2.8
MySQL 5.0.51aForum: Installing WordPress
In reply to: Already installed errorSorry to disappoint, that was the conclusion I came to from reading the codex, but PHP has been working fine beforehand, so unless WP needs some specific requirements from PHP it should work perfectly also. That’s whay I aksed here, I thought it was that simple also.