Kris
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Same content for different posts in single.phpoh just noticed my sidebar didnt paste properly
<!-- SIDEBAR LEFT --> <div class="red left">Latest<br/><br/> <?php $posts = get_posts('numberposts=3&offset=0'); foreach ($posts as $post) : start_wp(); ?> <div style="width:190px; height: 170px;margin-bottom:7px;"><div><a href="<?php the_permalink() ?>"><?php if ( has_post_thumbnail() ) { the_post_thumbnail( '190x110' ); } ?></a><div><div><span class="title"><b><a href="<?php the_permalink() ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="bookmark" ><?php the_title(); ?></a></b></span></div></div></div> </div><?php endforeach; ?> </div></div> <!-- SIDEBAR LEFT END -->
Forum: Themes and Templates
In reply to: Same content for different posts in single.phpexporting it to sidebar.php doesnt change anything either.
moving the ‘latest posts’ sidebar below
<?php the_content(); ?>
gets rid of the issue. if worse comes to worst i guess i could position it from there, but there must be easier solution…thanks in advance
hi,
i also created a custom page to use as a static page, but when i insert the loop, it doesn’t display properly. the title font is different size and my custom divs are not the width and height i set.
as it omits ‘h3 class=”post-title”‘ and my div classes in style.css.
i even pasted the whole of index.php into my static page and it’s still displaying wrongly (even though the loop on index.php displays perfectly).
let me add that all the h3’s and divs show up properly in header and footer so it’s only the loop that’s an issue.
please advise
ps. i’ve uploaded a couple of images to show exactly what i mean
https://s29.postimg.org/o84w4hn53/index.png
https://s10.postimg.org/5mpss1z3d/custom.pngForum: Themes and Templates
In reply to: [Sampression Lite] Page titleNever mind, all sorted with all in one seo plugin
Forum: Plugins
In reply to: [page-title] different page title on index.php, tag.php and single.phpI’m sorry, I’ve only just realizes that this might not be the right place for my question.
Could a mod kindly move this to ‘how to’ section
Thank you
thats great!
for some reason it doesnt work for me though…
it sorts posts by date
https://freeandroidgaming.com/cool, thanks
Forum: Themes and Templates
In reply to: [Sampression Lite] adding post title to page title?if you put this in the header.php your index.php has a title of your last post…
is there a way around it?Forum: Themes and Templates
In reply to: featured images ratiook, what i did is:
added a new image size in function.php
add_image_size('mynewsize', 250, 200, true);
pasted this in loop.php to replace the old thumbnail
<?php the_post_thumbnail('mynewsize'); ?>
it’s all good, but you need to reupload all the images again
i’d rather to have something like this:
<?php the_post_thumbnail('i_want_the_same_size_for_all_my_already_uploaded_images_and_i_don't_care'); ?>
??Forum: Themes and Templates
In reply to: featured images ratioThank you, but that doesn’t answer my question.
I’m perfectly aware why this is happening and that I could edit the image before uploading.
I’m looking for a solution to save me all this troubleForum: Fixing WordPress
In reply to: remove 'recent comments' bottom widgetif i leave the bottom widget2 blank it automatically appears
what i did is, i place a custom text widget there and just left it blankForum: Fixing WordPress
In reply to: remove 'recent comments' bottom widgetthe recent comments widget isn’t active in any of the widgets
but it always shows at the bottom of the pageForum: Fixing WordPress
In reply to: remove 'recent comments' bottom widgetyes i did, thank you
it seem to be hard coded somewhere in the theme, but i can’t find it