harshclimate
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Random Tagline – Possible? Not much out there for plugins.Thanks, esmi. Got your email but been totally busy with work. Gimmie a few days and I’ll get your code worked in and let you know ??
Forum: Fixing WordPress
In reply to: linking images to their own pageThanks, bdbrown. I’ll look in to this later – I’m late for work!
Forum: Fixing WordPress
In reply to: how to link attachment.php page and show picureI guess I’m not dealing with a post_thumbnail in this case, but what am I dealing with? image.php?
Forum: Fixing WordPress
In reply to: how to link attachment.php page and show picureIf you go to my page:
https://www.saturdaythrusunday.com/took-a-very-needed-trip-to-wilcox-arizona-its-been-years-since-weve-been-there-and-were-glad-we-went/You’ll see some photos included in a post, but when you click on those it didn’t go to attachment.php, or if it did, it didn’t display a larger image. No image at all showed up. I took the link away from the html since it didn’t work…
Since my previous comment has been deleted, I would assume a plugin admin has seen this post. It’s a pretty basic question for those with experience. Of which, I have none. So before taking the time to remove this comment, I would invite you to answer my question then delete this.
Forum: Fixing WordPress
In reply to: Linking a post_thumbnail to its own page with a larger versionI haven’t till you just pasted the link ?? Thanks for that. I’m not exactly sure where to add the code block that refers to:
Post Thumbnail Linking to Large Image SizeRight now, what I have on my index and single is this bit of code:
<?php if ( has_post_thumbnail() ) : ?> <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail_and_caption('',array('class' => '')); ?></a> <?php endif; ?>
To me, adding what she has would be in the a href tag but I can’t be sure. When I tested it, it threw a fatal error :/
Forum: Themes and Templates
In reply to: Conditional Statement for Showing CommentsThanks, it’s working ?? I’m just trying to get the format to work correctly now. I guess it’s not being placed in my theme right so I’m trying to figure out what’s going on there. It’s got nothing to do with php but my own mistakes, i’m sure.
Much appreciated, sir!
Forum: Themes and Templates
In reply to: Conditional Statement for Showing CommentsSorry, I’m such a noob when it comes to php. I’m not exactly sure where I’m supposed to insert that snippet. I’ve tried numerous positions in that conditional and can’t seem to trigger the comments to show. I know the warning says before calling the comments
comments_template()
but nothing happened.Sorry about this :/
Forum: Themes and Templates
In reply to: Conditional Statement for Showing CommentsI posted a comment and it’s not showing up… or it’s not replacing the widgets…
Forum: Themes and Templates
In reply to: Conditional Statement for Showing CommentsOkay, sorry for the spam! I think it’s working. Like a dork, I didn’t scroll all the way down the page. It wasn’t where it was supposed to be so I assumed it wasn’t working cuz I couldn’t see it ??
It’s working now and got in the right area. Thanks dood ??
Forum: Themes and Templates
In reply to: Conditional Statement for Showing CommentsAfter further review, I viewed source and I see that the widgets are showing up, but not being displayed on the page. Weird! Do I need to echo it or something?
Here’s what I added:
<?php if( have_comments() ) : ?> <aside class="col span-04 sidebar comments"> <div class="sidebar-frame"> <div class="widget-area"> <h3>Comments</h3> <?php comments_template(); ?> </div> </div> </aside> <?php else: ?> <aside class="col span-04 sidebar no-comments"> <div class="sidebar-frame"> <div class="widget-area"> <?php echo dynamic_sidebar( 'widget-area-main' ); ?> </div> </div> </aside> <?php endif; ?>
Forum: Themes and Templates
In reply to: Conditional Statement for Showing CommentsThanks for your response, Michael. I did add in what you had there and it did throw an error, but I just added
<?php endif; ?>
after the last</aside>
. Nothing is showing up… not even the sidebar which is<?php dynamic_sidebar( 'widget-area-main' ); ?>
No errors are showing at this point, but no content is either. Am I missing something?
Forum: Themes and Templates
In reply to: Conditional Statement for Showing Comments… still wondering …
Forum: Themes and Templates
In reply to: Conditional Statement for Showing CommentsStill wondering about this if anyone can help. I know it’s not as simple as:
if(has_comments_template()){ echo comments_template(); } else { echo sidebar(); }
Forum: Hacks
In reply to: Displaying Taxonomy and DescriptionsConditional worked like a charm. Now, I tried adding in that link you had there for edit term but I used it in a post edit link instead so I changed up the verbiage and code but wasn’t working (of course) so I did a little interweb searching and found just a plain ole
edit_post_link()
. It’s a little crude in that it says “edit this” by default but I can live with that ??I’m a little addicted to logging out and logging back in just because it keeps disappearing and reappearing lol – MAGIC!