dbu321
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Featured ImageI added this code into the loop.php file:
<?php if ( has_post_thumbnail()) : ?> <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" > <?php the_post_thumbnail(); ?> </a> <?php endif; ?>Forum: Themes and Templates
In reply to: Featured ImageNevermind, solved!
Forum: Themes and Templates
In reply to: Featured ImageThanks WPyogi.
I have not contacted the developer yet. I think I found a workaround, using some code I found on this page: href=”https://codex.ww.wp.xz.cn/Function_Reference/get_the_post_thumbnail
<?php $thumbnails = get_posts('numberposts=5'); foreach ($thumbnails as $thumbnail) { if ( has_post_thumbnail($thumbnail->ID)) { echo '<a href="' . get_permalink( $thumbnail->ID ) . '" title="' . esc_attr( $thumbnail->post_title ) . '">'; echo get_the_post_thumbnail($thumbnail->ID, 'thumbnail'); echo '</a>'; } } ?>When I put that code into the loop.php file it shows the five latest posts featured image on EACH post, which is not what I’m trying to do. I want just the featured image for that particular post to show, and link to the post. Would you be able to show me how to change the code above to accomplish that?
I appreciate whatever help you can provide, and thanks in advance!
Forum: Fixing WordPress
In reply to: Can't access wp-adminThanks!
Forum: Fixing WordPress
In reply to: Footer links dead on certain pagesOK. Thanks for the clarification ; )
I did do an upgrade to the WordPress core files recently (well not me, someone else with access to the site did, just found this out now). The theme was downloaded two years ago and is no longer available. New updates have been created for it, but by updating the theme, all the edits to the custom template will be lost.
Is there anyway I can work around this?
Thanks,
Dan
Forum: Fixing WordPress
In reply to: Blog page displaying first post, not currentOK. I believe the theme was downloaded from speedhatch.com if that helps.
As for the comment from the other thread:
The problem arose when I moved all the links from the main menu bar, and created the secondary footer.
I don’t really have the knowledge base to know why this would have caused any issues. I’m also not 100% sure if the blog was displaying the most recent posting before the footer change to begin with. The only files I edited to make the new footer were style.css and footer.php.
I’ve run into a dead end and I’m not sure what the solution here is. I appreciate the input this is really helpful to me.
Thanks
Dan
Forum: Fixing WordPress
In reply to: Blog page displaying first post, not currentHere is the theme I’m using, it has been customized, but not by me.
By Andy ZhengVersion 1.0
The 2010 default theme for Yougotlistings.com.Dan
Forum: Fixing WordPress
In reply to: Blog page displaying first post, not currentOk, so is that something an update will fix?
Where can I correct this?
Dan
Forum: Fixing WordPress
In reply to: Footer links dead on certain pagesThe theme should not be the issue, as those links have worked in this theme before.
I also deactivated any plug-in that was installed after the issue appeared, so that does not seem to be the issue.
The problem arose when I moved all the links from the main menu bar, and created the secondary footer.
Could the problem exist in the template possibly?
Forum: Fixing WordPress
In reply to: What's wrong with my css code?So I’ve looked at the website in dfferen’t browsers… Safari appears to be the only one displaying the menu incorrectly. Here is the code I’m using currently:
/* =Menu -------------------------------------------------------------- */ #access { background: #f; margin: 0 auto; width: 925px; display: block; } #access .menu-header, div.menu { font-size: 13px; margin: 0 auto; width: 700px; } #access .menu-header ul, div.menu ul { list-style: none; display:block; margin: 0 auto; width: 620px; } #access .menu-header li, div.menu li { float: left; position: relative; }Thanks
Dan
Forum: Fixing WordPress
In reply to: What's wrong with my css code?Hmm… I just tried that no luck. Maybe I didn’t include all the code necessary to fix it. Maybe this is enough to figure it out?
/* =Menu -------------------------------------------------------------- */ #access { background: #f; margin: 0 auto; width: 925px; display: block; } #access .menu-header, div.menu { font-size: 13px; margin: 0 auto; width: 660px; } #access .menu-header ul, div.menu ul { list-style: none; display:block; margin: 0 auto; padding-right: 80px; width: 660px; } #access .menu-header li, div.menu li { float: left; position: relative; } #access a { display:block; color:#584D4D; font-family:'Baskerville','Times New Roman',serif; text-decoration:none; /*line-height:38px;*/ padding:0px 15px; margin-left: 4px; /*font-weight:bold;*/ }Dan