NameSilo

Removing dates in wordpress

SpaceshipSpaceship
Watch

jwahl16

Established Member
Impact
0
hey everyone, i can't seem to get the dates off one page of my website: http://www.thecampingman.com

you will notice my homepage and my posts don't have dates (i removed the line of code) but if you click a category on the side it shows the dates. I don't know what file to go to to remove this. Help is apreciated! thanks.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
You deleted the time stamp from index.php and forgot the rest of the pages calls time from page.php.
Delete time code from page.php as well:
<?php the_time('l, F jS, Y') ?> <?php the_time() ?>

Sam.
 
0
•••
i did from both
 
0
•••
0
•••
0
•••
thanks i figured it out, and i even learned how to remove other parts i didn't want too!
 
0
•••
jwahl16 said:
....i even learned how to remove other parts i didn't want too!

:) This is how one learns best. lol
 
0
•••
ok, well i have a new problem, i removed the post content(to make the posts just links). What line of code would i need to put in to exclude the category "recipes" from that? That way the post linking to the other categories will still be there.

thanks
 
0
•••
Can't seem to get on your website?

Not entirely sure what you mean?
 
0
•••
0
•••
Thanks for the links guys, i was facing quite same problem.
I just came across this thread, no need to create new thread now :p
 
0
•••
Do you need it on any of the others at all? You might as well have a small blurb on the pages where you WOULD have a more, people would soon catch on to the idea of clicking the title rather than more?
 
0
•••
that is the only one i want to show. I do not want the "more..." to show. I know how to get rid of it in the archive.php file but i don't know how to keep the recipes one. Can someone please give me a line of code or something i could use?
 
0
•••
Okay, I'm kinda confused now as to what you want done now, but this can probably be accomplished with a conditional tag. In archive.php, try something like this:

PHP:
<?php if (is_category('x')) { the_content(''); } ?>

Replace "x" with the category ID of your recipes. I'm not sure if this will work with subcategories though, but let us know what happens.
 
1
•••
ok, that worked thanks a lot fish. rep to you. now if you look you at the categories you will see there is about one line of space where the body normally would be. is there a way to get rid of that?
 
0
•••
That's probably some extra div that usually holds <?php the_content(); ?> ...since I don't know the exact code you're using in the theme, I wasn't sure.

Try this instead:

PHP:
<?php if (is_category('x')) { ?><div class="postcontent"><?php the_content(''); ?></div><?php } ?>

Again...changing the 'x' with the category you want.
 
0
•••
that added an extra box, i want to remove the box.
I posted my archive.php to archive | The Camping Man so you can take a look at that.

Just to be clear, i want to remove the box from under the post title in the archive.php file.
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Spaceship
Domain Recover
DomainEasy โ€” Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back