ereg_replace in Wordpress


Posted on 16th Feb 2014 07:03 pm by admin

Heya - so I'm working on this site: http://world-of-smiles.theportlandco.com/new-patients

The site is built off Wordpress and I'm getting the pages title using Wordpress function: Line number On/Off | Expand/Contractwp_title("", false, "") and I'm trying to reformat it's title to all lowercase and replace spaces with dashes. It's working, except that it's adding two dashes to the beginning of the title and I'm not sure why. Can someone help?
Did you know?Explore Trending and Topic pages for more stories like this.
Line number On/Off | Expand/Contract<?php echo ereg_replace(" ", "-", strtolower(wp_title("", false, ""))); ?
No comments posted yet

Your Answer:

Login to answer
318 Like 50 Dislike
Previous forums Next forums
Other forums

Deleted Delivery but material wont return
We deleted a delivery but the material its still pending.

We made a reverse goods movemen

Google voice
I currently have a form in html, but I want it in php so the information is not in the source code.<

The repetition structure: the while statement not working
New programming student, have assignment as follows:
A restaurant has 4 lunch combos for custom

switch not getting value
what am i doing wrong?
i want to populate the country list according to the category
i want to

Adding to the next element in a multidimensional array
Hi, I'm trying to add a value to $node->field_spaces['nid'] where x is the next available spo

Multi Level Array Problem
hi all,

For example I have array like below:

$temp = array(array('north america', 'us'

how to get values from $_Post with onchange="form.submit();"?
Hi, I have a form that submit to itself with a file upload field and two other hidden field values.<

Parse Error Help
Hello, I got the parse error "Parse error: syntax error, unexpected ',' in register.php on line

how to read and write into a word document using php...?
hi,
I need,reading and writting into a word document using php.




Thank u inadva

XML Grouping
I'm using xml_parse_into_struct to get all my elements, but now I need to group them. For example, h

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash