philippknoll
Forum Replies Created
-
Thanks Tangobango,
I’ll keep working on it a bit and see what I can find. I appreciate you taking the time to reply.
Cheers.
Hi Tangobango,
Did you ever find a solution to the T_FUNCTION issue? I’m having the same problem. Any hints would be really appreciated.
Thanks,
PhilippForum: Fixing WordPress
In reply to: Unable to insert WordPress Audio Player in my BlogPlease state what exactly happens when you try to insert that code, save the post and reload your website.
Mind posting a URL?
Forum: Fixing WordPress
In reply to: Show X posts randomly from particular CategoryForgot to mention the custom field. I’d get it using this code before the line <? the_content() ?>. With some css you can have the post nicely wrap around the custom field image.
<?php global $more;
$more = 0;
$custom_field_name = get_post_meta($post->ID,’custom_field_name’, true);
if ($custom_field_name != “”) { ?>
<img src=”<? bloginfo(‘url’); ?>/wp-content/uploads/<? echo strtolower($thumbs); ?>” alt=”” class=”indexthumb” />
<? } ?>Forum: Fixing WordPress
In reply to: Show X posts randomly from particular CategoryI did the same thing a couple of days ago and it is working fine for me. This is how I did it:
<?php query_posts(‘cat=4&showposts=3&orderby=rand’); ?>
<?php while (have_posts()) : the_post(); ?>
<? the_title(); ?>
<? the_content(); ?>
<?php endwhile; ?>
<?php wp_reset_query(); ?>You need to place the statements in your div containers. The last statement <?php wp_reset_query(); ?> it to reset the query. Without it I ended up having the sidebar posts as the main page’s content as well (the main pages query was over-written).
Hope that helps. Let me know if you need more info…
Forum: Fixing WordPress
In reply to: Displaying full postsI’m not sure I totally understand what you need to do. Perhaps you want to make that clearer…
To display the latest post from a category on a specific page I’d create a template with a query for posts from that category and limit the number of posts to one.
Then I’d create a page in WP and select the template I just set up.
That way that page would always display the latest post of the category you picked in the template.
Is that what you are looking for?
Hope it helps…