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

Extract specific information from a PHP Multidimensional Array
Howdy! I've racked my brain over this for 24 hours now. I think it's time I asked for help. I'm lear

Email Form Syntax Issue
I need the TO: in email to display To: CEO instead of To: abc@mail.com

How to alter the scri

What is SAP Avatar ?
Hi All,

This G.Satish , my boss asked me to explore on SAP Avatar. I searced in internet

Displaying pictures
i have worked my way through storing images in directory and storing the location in mySQL db.Now i

UTL File problem
Hi
I have a file in certain path with the following permissions (The file is a dummy file witho

Restricted access to sub-folder in iis6 doesn't work?
Basically I'm trying to add restriction to sub-folder (which contains pdf) in web.config for iis6 as

Little problem with form insertion in MySQL, Please help!!!
Hi!,

I'm a little bit new with php and I have a little issue here. I created a webform to ins

CURL question
i am wondering if it's possible to use multi curl with login something like

login once to web

max() problem
I have a while loop to get image names.
Code: $imagequery = mysql_query("SELECT * FROM ad_i

function not returning the correct value
I have a program that needs to return a value from a function. I have an output statement inside the

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