jimmyt1988
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Pagination, Not sure what to doOk,
This is my current code.
You may be thinking, why has he not listened to our posts.
I have, I have run through them.
I’m not quite grasping them.
current code:
https://wordpress.pastebin.com/p4vvDNak
current site:
https://www.jamestrusler.co.ukWhat I thought my code is doing is:
1. If the page is blog, get posts from the category id I specify.
2. While there is posts for that category, for each one, display the content. And when you reach the limit (1), then stop outputting.
3. After you done all the for each ones, Stop the while loop. Then display a link to another page that displays the remaining archived posts for that category.The problem is, I cannot comprehend just how it all works.
Forum: Fixing WordPress
In reply to: Pagination, Not sure what to dovtx.. before I look at your page, Ill ask:
what does that do: wp_title(”,false,”);
I have got this… But tbh, It’s going over my head. I wish I didn’t suck so much.
$page_title = wp_title('',false,''); if( in_array($page_title, $pageNames) ) : query_posts('category=3,4,5,6&posts_per_page=1'); while (have_posts()) : the_post();?> <div class = "leftSideWrap"> <h2><?php the_title(); echo " <small>"; the_time(get_option('date_format')); ?></small></h2> <div class = "top"></div> <div class = "middle"> <div class = "cornerImage"></div> <?php the_content(); ?> <div class = "commentSeperateLine dotted main"></div><br /> <p> <a href="<?php comments_link(); ?>"> Add / View Comments to this post</a> - <?php comments_number('There are currently no comments', 'There is 1 comment', 'There are % Responses' ); ?> </p> </div> <div class = "bottom"></div> </div> <?php endwhile; endif; ?><?php posts_nav_link(); ?>
P.S I have no idea what a bump is. P.S, what? lol
P.S
I have put that function in my functions.php that vtxyzzy supplied.
Added the code from the <head></head> part of the header.php, I am seeing some next and back buttons. lovely lovely but I get this:
Warning: Cannot modify header information – headers already sent by (output started at /customers/jamestrusler.co.uk/jamestrusler.co.uk/httpd.www/wp-content/themes/jamestrusler/functions.php:36) in /customers/jamestrusler.co.uk/jamestrusler.co.uk/httpd.www/wp-includes/pluggable.php on line 868
When I press the next page button.. hmmm.
Forum: Fixing WordPress
In reply to: Pagination, Not sure what to doThankyou Esmi. You always save my ass.
I “did a cowboy” (I heard somoene use this phrase.. apparently it means you get something to work then leave it alone but it might be the worst way… I cant believe I just explained that. *sighs*) on my website and got it to work. I was so happy, I completely forgot about including the default head and footer stuff..
I knew there was an easier way of doing if page then do this post. But I couldn’t be bothered to check it out after I had got it to work.
You know i’ll post again but you’ve got me started. hehe.
Cheers once again!!! You’re a credit to wordpress!
Forum: Fixing WordPress
In reply to: Remove <li class=”cat-item and <li class=”tag_item”Absolutely fine, sorry for your time ??
I had same problem once. “I NEED HELP BUT I CANT POST URL *grits teeth*”.
Wish you best of luck.
Forum: Fixing WordPress
In reply to: Pagination, Not sure what to doAh, it is suppose to pull in certain posts if the website is currently on a certain page.
for example:
If it’s page “blog”, show only Blog posts. etc. (I got this part to work. It’s changing that whole loopy part to succesfully give me a goto next page link thats the problem)
what i needed was, show only 1 Post on the first blog page, then have a next button that leads to another page with only 1 post. ie… pagination. If I wrote too many amazing blogs, I need them to go onto archive pages.
(infact i want it to be 7 posts per page, but i can only test with 1 post per page, coz only 2 posts exist ?? )
P.S I just changed that line. Removed the extra ) that was there. It shows the same result.
??
Forum: Fixing WordPress
In reply to: Remove <li class=”cat-item and <li class=”tag_item”Thing is, at the moment, I don’t know about the tag_item thingies. If I see the website, I’ll most certainly be able to see where they are and then try it in my own blog and help out.
I’m a visual guy hehe. I need visuals to help.
Forum: Fixing WordPress
In reply to: get_post query where posts don’t have a specific meta_keytry:
$myposts = get_posts('category=3&meta_key=feature-sidebar&meta_value!=true');
Might not work but != means does not equal. So it might work *shrugs*.
Forum: Fixing WordPress
In reply to: Remove <li class=”cat-item and <li class=”tag_item”Is there any chance you can post the blog url?
Forum: Fixing WordPress
In reply to: Pagination, Not sure what to doI’m kind of stuck now because i’m scared to touch my site just in case you’re checking it out. lol.
Any thoughts or should I just scrap that whole part and be happy with what i coded before *looks with puppy eyes* ?
Forum: Fixing WordPress
In reply to: Unintentional 2tone background! help!FTP into the directory where the style.css is.
change:
body { margin:0; background:#01b0ea url(images/bg.png) bottom repeat-x; font-family:Verdana, Arial, Helvetica, sans-serif; color:fc418c; font-size:11px; }
to
body { margin:0; background-color:#01b0ea; font-family:Verdana, Arial, Helvetica, sans-serif; color:fc418c; font-size:11px; }
You can also find the style.css by going into themes and editing the current theme. down the right hand side it will say style.css. Edit it and update it.
P.S, the red was part of the theme in a big way. If you remove that bottom part, it looks awful. I suggest choosing a different theme perhaps?
Forum: Fixing WordPress
In reply to: Can anyone help?If you still struggle. try closing your browser and reopening. It could be a “cache” problem.
If that doesnt work, empty your cache.
Forum: Fixing WordPress
In reply to: Allow no user role to post?Can you try this:
https://www.ads-software.com/extend/plugins/per-post-anonymous-comments/
Im not sure if it works but worth giving it a shot.
Forum: Fixing WordPress
In reply to: Can’t save any new posts or pagesGo into the html version of the text editor. and replace the letter m with
& # 1 0 9;
without spaces
See if that solves it ?
Forum: Fixing WordPress
In reply to: Post Pages not foundI posted at same time he posted. So i didnt see his comment add ?? Can you mark as “topic solved” ??
Forum: Fixing WordPress
In reply to: Pagination, Not sure what to doThe website is now the same as https://jamestrusler.co.uk/wp-content/themes/jamestrusler/helpMe2.txt