syed544
Forum Replies Created
-
Hi fabiancz, thanks for this gr8 plugin.
I have tried to change the location of this plugin from “just after post-content” to just after “wp_link_pages” div tag.
but i failed miserably. Could you please help me out?
I have my post divided in several pages, and I want to show this plugin after the page-links div bar.Forum: Fixing WordPress
In reply to: how to thumbnails with posts links in category templatesorry.
the title of this thread should be read as :
how to DISPLAY thumbnails with post’s link in category templateForum: Fixing WordPress
In reply to: How to show image of first post in monthly-Archive pageThanks.
Topic resolved!Forum: Fixing WordPress
In reply to: How to show image of first post in monthly-Archive pageIts working fine now. The problem of 2-images was due to two attachments linked to same post.
now I need to link the image to its post.
i.e: How can I give the permalink of the post to the image?Forum: Fixing WordPress
In reply to: How to show image of first post in monthly-Archive pagejust after the “title” of the post, I am using the code as like this:
<br /> <?php if (++$post_count == 1) { $args = array( 'post_type' => 'attachment', 'posts_per_page' => -1, 'post_status' => null, 'post_parent' => $post->ID ); $attachments = get_posts($args); if ($attachments) { foreach ($attachments as $attachment) { echo wp_get_attachment_image($attachment->ID, $size='medium', $icon = false); } } } ?>
Its OK. but for some months, the thumbnail is not showing. And instead of this, two thumbnails of two month’s first post are displaying in a single month.
Can anybody check to find the error? Please.
Forum: Fixing WordPress
In reply to: How to show image of first post in monthly-Archive page@esmi,
OK. I got your point.
Forget about the previous location.
Can you guide me, as how can I display the image just after the “title” of the post?
Since it is in a loop, so I can place the code in between IF condition that the image will show only if it is the first post of the month.Forum: Fixing WordPress
In reply to: How to show image of first post in monthly-Archive page@esmi :
Here is the code
code – Archive.phpForum: Fixing WordPress
In reply to: How to show image of first post in monthly-Archive page@chinmoy29 :
How and where?Forum: Fixing WordPress
In reply to: How to show image of first post in monthly-Archive page@esmi:
yes, this page (Archive.php) uses a custom template.
It will show all the posts-links for the particular month category-wise.Forum: Fixing WordPress
In reply to: How to get link for post-date (month-archive-link)Got It !!!!!!!!!
the true CODE is like this :
[<a href="<?php echo get_month_link(get_the_time('Y'), get_the_time('m')); ?>"><?php the_time(__('Y', 'f2')); ?> - <?php the_time(__('M', 'f2')); ?></a>]
Forum: Fixing WordPress
In reply to: How to get link for post-date (month-archive-link)I have used like this :
<a href="<?php echo get_month_link(the_time(__('Y', 'f2')), the_time(__('m', 'f2'))); ?>"><?php the_time(__('Y', 'f2')); ?> - <?php the_time(__('M', 'f2')); ?></a>
but it shows the URL as double and doesn’t go to the particular-month’s archive page.
Forum: Fixing WordPress
In reply to: CODE for ODD row of categories listThanks Joseph.
Got the idea & it works like charm.Forum: Fixing WordPress
In reply to: CODE for ODD row of categories listSorry !
The above code should be like this :<table><tbody> <?php while (have_posts()) : the_post(); ?> <tr> <td> <a href="<?php the_permalink() ?>" rel="bookmark"> <?php the_title(); ?> </a> </td> </tr> <?php endwhile; ?> </tbody></table>
Forum: Fixing WordPress
In reply to: Displaying Monthly Archives in category group@ vtxyzzy:
You solved this same type problem [as that of martiniboy] for me. You deserve my hearty THANKS!!Forum: Fixing WordPress
In reply to: Archive.php Show post links under each categorysorry. the code shall be like this:
query_posts('year=' . $thisyear .'&monthnum=' .$thismonth );