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

ImageCreate()
When I create an image and add text to it I want my text to be replaced with a PNG image, because th

Ajax Error since Upgrading to 3.5
Ever since upgrading my site to .NET 3.5 (I needed LINQ), I've been getting this annoying error on o

How to use php and sql to check if values match the ones in a table (for logins)
How would I code it that the script takes two variables that are passed to it (UserID and PIN), and

RSS poster script?
I have found a script that posts RSS's for me on a site that I'm building. However I would like to a

Filtering an Array Based on Value
I have a very simple script set up that pulls data from a database and is output using this code:

Why is this query failing?
Why is this not working?
$query = "SELECT * FROM `users` WHERE `userid` = " . $USERID

upload only text files
hi guys i want to upload only text like like (pdf,note pad and ofiice files) so can any one please t

standard ALV application toolbar, into custom report....
HI,

I have a question regarding displaying standard ALV menu path and application toolbar

Get ID from Database when Posting with a HTML Form
I have a form I am submitting to a MySql database. Each product has an ID # attached to it that auto

Why is this function returning a false value when it shouldn't be??
This is in an include file. I want it to check a value in an html form and see if it's just white s

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