smackhappy
Forum Replies Created
-
Forum: Plugins
In reply to: [Media Tools] Auto import & set featured image when post is publishedI’m interested in this too.
Doh, I see now. Sorry for the trouble!
Forum: Plugins
In reply to: [Advanced Custom Fields (ACF®)] How to display custom image field in foreachThis works for me:
<?php$this_category_id=get_query_var('cat');
$args=array(
'parent' => $this_category_id,
'orderby' => 'name',
'order' => 'ASC',
'hide_empty' => 0
);$categories=get_categories($args);
foreach($categories as $category) {
$image_url=get_field('fm_category_image', 'category_'.$category->cat_ID);
echo '<img src="'. $image_url[sizes][large] .'"/>';
echo '<b>'. $category->name .'</b>';
echo '<p>'. $category->description .'</p>';}
?>I added the image size.
Forum: Themes and Templates
In reply to: wp-comments-post.php = Blank page : Broken comment abilityI added this line to the comments.php file within the <form> tag and it worked.
<input type=”hidden” name=”comment_post_ID” value=”<?php echo $post->ID; ?>” />
If that doesn’t work, the id may be expressed like this:
<input type=”hidden” name=”comment_post_ID” value=”<?php echo $id; ?>” />
Forum: Fixing WordPress
In reply to: Comments don’t work; blank pageI added this line to the comments.php file within the <form> tag and it worked.
<input type=”hidden” name=”comment_post_ID” value=”<?php echo $post->ID; ?>” />
If that doesn’t work, the id may be expressed like this:
<input type=”hidden” name=”comment_post_ID” value=”<?php echo $id; ?>” />