can’t modify post title using the_posts filter

You missed the return statement. function filter_the_posts( $array , $oQuery) { … $array[0]->post_title=”new title”; $array[0]->post_content=”new content”; return $array; } add_filter( ‘the_posts’, ‘filter_the_posts’, 10, 2 );

Add static text to post URLs

if i good understand your problem, you should to go: Dashboard -> Settings -> Permalinks and in “Common Settings” section select checkbox “Custom Structure” and here paste: /my-blog/%postname%/ and save changes. Now refresh your page and go to random post and your url should be like: https://example.com/my-blog/this-is-the-article-name Good luck!