Issue: Change WordPress upload path and URL.

Posted in: Newspaper
Post count: 2

Hello,
I want to change a standard WordPress upload path and URL. I use a special script for it:

add_filter( ‘pre_option_upload_path’, function( $upload_path ) {
return ‘/path/to/static’;
});

add_filter( ‘pre_option_upload_url_path’, function( $upload_url_path ) {
return ‘http://static.example.org’;
});
I’ve used it many times before with other themes and I have never had problems with it.
But, when I try to do it with “Newspaper”, WordPress generated incorrect URL for media files, like (http://domain1.com/wp-content/uploads // home/mydir/domains/files.domain2.com/public_html/wp-uploads/2018/10/test_img-7.png)
Can you help me fix this issue?

Post count: 23312

Hello smwpteam,

Unfortunately, the theme does not have any such an option that allows you to do this, sorry! If you want to do this, you should do it yourself through the code because we cannot provide additional customizations at the moment, sorry!
Until now, we do not have any bad reports in this case, sorry! Everything seems to work as expected.

Thanks for your understanding!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.