Custom permalink variable on single post


I’m trying rewrite url for permalink on single post
my permalink: /%postname%/
My single form:
adc-def mean: %postname%

i want permalink is:
But it is not possible.
this is my code:

add_action( 'init', 'myblog_rewrites_init' );
function myblog_rewrites_init(){
        'top' );

add_filter( 'query_vars', 'myblog_rewrite' );
function myblog_rewrite( $query_vars ){
    $query_vars[] = 'chapter';
    return $query_vars;

Please help me! Thanks every body!


>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="">

Custom permalink variable on single post</a>
, quyet 1 month 0 Answers 48 views 0

Leave an answer