matharchod
Forum Replies Created
-
Forum: Plugins
In reply to: HACKED? “?>” End PHP Error in footerYup. Thanks!
Forum: Plugins
In reply to: Show lastest post on home page but multiple posts on archive pagesThanks!
Forum: Plugins
In reply to: Excerpts not working on home page?Most Excellent! Thank you.
Forum: Fixing WordPress
In reply to: How do I get rid of the colon : in my meta_keyYeah guys, I see your points. It’s definitely not poetry, but it’s just plain easier for me to do. I’m not a power user, obviously, so you’ll have to forgive my preference for hacks. Or not. Thanks for the feedback, though.
Forum: Fixing WordPress
In reply to: How do I get rid of the colon : in my meta_keyThat’s good point! I’ll make sure to keep an eye out for that. As a matter of fact, I’m going to suggest to the team in the Kvetch section to consider removing the “:” colon from the “post-template.php” doc. That way, users will be able to decide what comes after the meta-key when they enter the name of the key in the Admin panel.
Thanks again!
Forum: Fixing WordPress
In reply to: How do I get rid of the colon : in my meta_keyHi everyone,
It seems I’ve found the answer to my question. Although both MichaelH and Dgold have great insight into the inner workings of WordPress, I have a simpler solution to my problem.
The problem: How do I remove the colon : from the post-meta-key in my template?
The (simple) answer:
In the wordpress>wp-includes folder there is a file called “post-template.php”.
Open that file in a text editor.
Do a search in that file for this line of code:
echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>$key:</span> $value</li>\n", $key, $value);
Where is says
$key:
, simply remove the “:” colon.With this method, you can control your post-meta-key in all sorts of neat ways!
Forum: Fixing WordPress
In reply to: How do I get rid of the colon : in my meta_keyDgold,
Thanks for the detailed instructions! However, it seems strange that such a simple change requires such a weird workaround, no? The problem I have is that I still want to use the get_meta include put simply change the parameters a bit. Is there maybe a wp include file that I could edit?
Again, thanks for the help!