the other option could be
<?php
if (is_category(23))
{
function jl_remove_post_dates() {
add_filter('the_date', '__return_false');
add_filter('the_time', '__return_false');
add_filter('the_modified_date', '__return_false');
add_filter('get_the_date', '__return_false');
add_filter('get_the_time', '__return_false');
add_filter('get_the_modified_date', '__return_false');
} add_action('loop_start', 'jl_remove_post_dates');
}
?>
<?php
missed it but add it
the second thing you tried it, but did you add important ? to display:none ?
I feel stupid now.
Both code options you posted didn’t work. I’m sure you know WAY more than I do, so – can you tell me what I would have to do to mess this up? lol
I’m sorry – I’m copying and pasting your code into the top of my functions file (but I’m not including the php tags because it’s already inside the main <? ?>
How can I fix this? 🙁
i am not doing it on a dreamweaver or anything so might miss brackets or something i am just on my phone
so keep an eye on the syntax i am just giving you logic
No problem Robin. My site didn’t crash 🙂
It’s just not removing the text – so, I’m 99% there I can feel it. I just need to understand that last part…hmmm….
Every time I copied and pasted your code with the <?php ?> it would crash my site – so I’m not copying that in –
Should I be using those “<?php ?>” code that you wrote, because I can’t use it without crashing my site. Syntax error.
instead of the id try using the slug
i know this is the logic which should work / infact it works so you have to play around with the code as per your condition
i didnt get when u said its already <? ?> its already there ?
you must be conflicting it with other php opening and closing
I tried the slug – that didn’t work either.
About the “<? ?>”
I meant that, my entire functions.php file is enclosed with <?php ?>, so I didn’t think I had to add that again. Just start off the code with IF……
Do I need to actually copy your code exactly? Or just the IF/function part?
I put the code at the top of the file, like you suggested 🙂
Could it be conflicting with the opening/closing of the main PHP tag for the whole document?
nope do it outside the main function <? ?> thing
would be better
Ahhhhh, I didn’t try that…let me see that….one sec….
and try instead of is_category
to in_category
🙁 No luck.
The date, permalink bookmark, and BCL/author are still visible in the category page and all posts in that Compositions category.
I copied your code and played around with both…
Ok…I’ll try in_category….
I wish I had better news. But, no, it’s still not working. I’ve put all the code just like you said to, above the main php tags, everything looks fine – no syntax errors – it’s just not hiding the text 🙁
I hate to bother you some more, but if there is anyway sometime, if you have some free time to help more, can you take a look at my files/code and see maybe how we can fix this?
Thanks a bunch my friend,
Ben