Marc
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Calling Custom Field values for specific key.Yet again, brilliant!
Thank-you so much. The page looks great: http://www.srizzil.com/movies/
Forum: Themes and Templates
In reply to: Calling Custom Field values for specific key.All I need now is to limit it to a certain category.
Forum: Themes and Templates
In reply to: Calling Custom Field values for specific key.Yes! Thank-you! Thank-you! Thank-you!
That’s exactly what I need. You’re a genius!
Forum: Themes and Templates
In reply to: Calling Custom Field values for specific key.The reviews are posts. However this is being displayed on a page. I want the 8 latest reviews to have their posters show up and link to that particular post from this page.
Forum: Themes and Templates
In reply to: Calling Custom Field values for specific key.I think I understand that concept, but surely there should be some xhtml on that line from the code. At this point there is nothing.
I do, here’s what I tried to no avail:
<TD VALIGN="TOP" width="800" BG="#ffffff"> <?php wp_reset_query(); ?> <?php if ( (is_page('Movies')) ){ query_posts(array('showposts' => 8, 'post_parent' => 949, 'post_type' => 'page')); while (have_posts()) { the_post(); // vital $thumbPath = get_post_meta($post->ID, 'MoviePoster', true); $thumbPath = "" . $thumbPath; ?> <a href="<?php the_permalink(); ?>" class="grid-book"> <img src="<?php echo $thumbPath ?>" alt="" /><br /> <span class="grid-title"><?php the_title(); ?></span><br /> </a> <?php } } ?> </td></tr></tbody></table>Forum: Themes and Templates
In reply to: Calling Custom Field values for specific key.Thanks @pboosten. That’s solved the syntax errors but now it’s doing the same thing as the other code. It’s just not there when the page renders. If you look at the source code for the above link your code should be on line 177.
Forum: Themes and Templates
In reply to: Calling Custom Field values for specific key.@gbaka Here’s the page: http://www.srizzil.com/movies/ The code should be on line 170 but doesn’t appear at all when looking at the source of the page. There must be code missing.
@pboosten What you’ve done is very similar to what I want to achieve but trying to modify your code continually gives me syntax errors.
I simply want to pull the poster from the 4 latest reviews and display them on the page. The user then should be able to click on the poster to take them through to the review.
I don’t have much experience so it’s very likely I’m doing something wrong.
Forum: Themes and Templates
In reply to: Calling Custom Field values for specific key.It doesn’t seem to be doing anything. This is what I inserted into the template:
<?php $your_cusom_field_key = 'MoviePoster'; $posts=query_posts('meta_key='.$your_cusom_field_key.'&showposts=4'); ?>I forgot to mention that this needs to be on a page and not in a post. I’m not sure if that changes anything or if I’m just doing something wrong.
Forum: Fixing WordPress
In reply to: Errors after moving siteJust so everybody knows, this error was caused by one of the tables in the database still looking for the subdomain.
The upload_path in the wp_options table to be exact. After correcting this the error went away.
Forum: Fixing WordPress
In reply to: Errors after moving siteDoes nobody have an answer?
Forum: Fixing WordPress
In reply to: Errors after moving sitePlease help!