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

Add_Months not Easy to Understand
Oracle is number 1, very fast and very easy. But....
OK, I think but have a problem, only 1 pro

Preventing SQL Injection
I have a question about SQL Injection, In some of our code we use this: view plaincopy to clipboa

need help in dynamic select menu in php
hi i have created a dynamic select menu using php. i have a problem in that which is when the user s

set xml path in flash when xml created in memorystream and webrequest
i am creating an xml file using memory stream and i want to load this xml file into the flash on cli

Session login issue
I'm wondering how to fix a problem I'm having with a session-based login system

Say I go to h

Print out contents of to Excel
I have got this script that gathers all the data that I need but I need it to send it to excel inste

Delete HTML file after loading
I have limited experience with php and its been a year or two since I've last used it. I have a sma

Schedule editor
Hi,

I have a question related to Schedule editor.
If we schedule a BLS for every 30

Socket problem
Hello,

Earlier I posted about my problem with my socket script. It took up to 100% CPU usage.

Namespace Problem
I'm having problem with a section of code with a variable namespace.

This code works fine:

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