Hi i was wondering if someone can help me accomplish this D:
What im trying to do is getting a custom field on my category listing so far i got this :
<?php
$args=array(
'orderby' => 'name',
'order' => 'ASC'
);
$categories=get_categories($args);
foreach($categories as $category) {
echo '<p>Anime: <a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all Episodes of %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> </p> ';
echo '<p> Description:'. $category->description . '</p>';
echo '<p>We have: '. $category->count . '</p>'; }
Witch only comes from the category.php and i need to grab a custom field from the last post in each category i guess it has to be something with echo get_post_meta anyways i hope i get someone to help ^^
Thanks in advance.