Question
I want to get several post by tag. So I try to use get_posts() function: <?php $args = array( 'numberposts' => '3', 'post_status' => 'publish', 'tag' => 'travel' ); $recent_posts = get_posts($args);?> But it doesn't ...
0
, , 3 days 0 Answers 11 views

Question
Please i need to replace link with capital letter to small letter using wp function E.g let every text after /get/ be replace with small letter. <a href="https://stackexchange.com/get/ASK-Question"> => <a href="https://stackexchange.com/get/ask-question"> <a href="https://stackexchange.com/get/aSK-QuesTion"> => <a href="https://stackexchange.com/get/ask-question"> here is my function, I dont know where ...
0
, 3 days 0 Answers 10 views

Question
Hello please I want to search and replace word after /check/ and make it to be permalink sanitized. i.e https://example.com/check/Dav,ido Song/ => with https://example.com/dav-ido-song/ https://example.com/check/daV,i'do1/ => https://example.com/dav-i-do1/ https://example.com/check/daV(i'do)/ => https://example.com/dav-i-do/ I want to achieve this using sanitize_title() or sanitize_title_with_dashes() function. here is my word replacer. ...
0
, 4 days 0 Answers 11 views