PDA

View Full Version : Escaping with WP Titles ...


Pauly
November 21st, 2007, 14:43
Howdy!

I'm skinning WP and have a need to edit the titles. WP wants to use this;

<?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>

I need this to say "check't out", instead of "Pages". Doing that though messes with it, so I figure I need to escape it or something? This is probably so simple, but the only thing I can do with PHP is an include :lol:

Can someone help me out?

Pauly
November 21st, 2007, 14:45
Oh, my PHP skill proceeds me! I figured it out; \' :D

Odd Fact
November 21st, 2007, 16:37
Why not post the fix it may help others. I am always up for learning more about WP.

Pauly
November 21st, 2007, 16:42
That end little mess of character was the fix :lol: Here it is in full form;

<?php wp_list_pages('title_li=<h2>Check\'t Out</h2>' ); ?>

Hey Odd, you're into WP quite a lot aren't you? I'll share my link once I'm done if you like, it's my first time playing with it though, so I'm kind of stumbling through it at the moment, with Jamie's help :)

Odd Fact
November 21st, 2007, 17:15
So far WP is one of the better blog/cms systems. It can take some hacking to get nice code. Some of the plugins can take a while to clean up and the fancy text editor still strips some code but overall works pretty well.

Pauly
November 21st, 2007, 17:29
Yea, that's my biggest gripe with WP right now - Hardcoded (X)HTML. It's so annoying, and I thought vB was bad with that!

kirxklox
November 21st, 2007, 21:05
I hope you are following all the STRINGS that make WP work using PHP.