Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 1 replies (of 1 total)

  • Daniel Lemes
    Participant

    @daniel_iceman

    Well, i don’t know how i didn’t think about it before. Pretty simple, just changing the function which gets the slug. So:

    function the_slug() {
        $post_data = get_post($post->ID, ARRAY_A);
        $slug = $post_data['post_name'];
    	$slug = str_replace(array('-'),' ',$slug);
    	return $slug; 
    }

    It gives me the slug as nice filtering terms like “chrono trigger” (space instead of -). If the page slug is “chrono-trigger-snes” i still having a problem, but i will use another string replace to get rid of this.

    Any suggestion or opinion about performance (other faster/lighter way)?

Viewing 1 replies (of 1 total)
Skip to toolbar