Quantcast
Channel: WordPress.org Forums » [WP-Filebase Download Manager] Support
Viewing all articles
Browse latest Browse all 1341

Bumble on "[Plugin: WP-Filebase Download Manager] File Name to Title"

$
0
0

It appears I figured it out, though not sure why this didn't work the day before.

Just added the 3rd line there to str_replace the dash in output.php

$ft = preg_replace('/\.([^0-9])/', ' $1', $ft);
$ft = str_replace('_', ' ', $ft);
$ft = str_replace('-', ' ', $ft);
$ft = ucwords($ft);
return trim($ft);

I had also made a slight change in admin.php to preg_replace (in the line that catches file versions) but I have since removed that without effecting the fix.

Was happy to get this to work because I've been pushing to have files named with dashes between words for SEO purposes.


Viewing all articles
Browse latest Browse all 1341

Latest Images

Trending Articles



Latest Images