geekjon
Forum Replies Created
-
Thanks
Forum: Fixing WordPress
In reply to: How to improve WordPress search?I’ve tried some search plugins, but the ones I have tried tend to broaden the results instead of make them more concise. I’ll continue to look at the available plugins.
Forum: Plugins
In reply to: Gallery link back to parent postWhat I did was create a template called
image.phpwhich is basically the same as myindex.phpbut where the entry would go I put the following code:<p>This post belongs to <strong><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a></strong></p> <p style="text-align:center" class="attachment"><a title="<?php the_title(); ?>" href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?></a></p>This puts a link back to the parent post and below that is the medium-sized image.
Forum: Fixing WordPress
In reply to: Gallery link back to parent postI figured it out myself. The changes needed to be made to the image.php which my theme was missing. Once I created the image.php file, I was able to add the functionality that I was looking for.
<p>This post belongs to <strong><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a></strong>Forum: Fixing WordPress
In reply to: Gallery link back to parent postAnyone know how to do this?
Forum: Fixing WordPress
In reply to: PHP in Sidebar?I’ve noticed the same problem. I had some simple PHP in my sidebar, and no matter what I try I cannot get it to work. I’ve tried placing the PHP in text widgets, in “PHP Code” widgets, and straight in the sidebar.php file. No matter where the PHP is in the sidebar, it is stripped out.
Forum: Fixing WordPress
In reply to: Not getting “Read More” correctly in feedSo that feature was discontinued. That seems odd. I will try to get accustomed to using the excerpt field.
Forum: Fixing WordPress
In reply to: Not getting “Read More” correctly in feedI’m having this same problem. Since the 2.5 upgrade, the feeds show the full post instead of only showing up to the <!–more–>
Forum: Themes and Templates
In reply to: Link to commentsOkay, I just checked comments_popup_link() and that looks like it’ll do the trick. Thanks.
Forum: Themes and Templates
In reply to: Link to commentsI have already put the anchor before the comments. The problem that I need help with is taking the following snippet of code (from my index.php) and put hyperlinks to the comments for that post:
<p class="info">by <?php the_author(); ?> <span>|</span> <?php comments_number('No Comments','1 Comment','% Comments' );?> <span>|</span> Tags: <?php the_category(', ') ?> <?php edit_post_link('| Edit','',''); ?></p>