if my main.php file is located inside /wp-content/plugins/myplugin/folder/folder/folder/
why including urls.php , located inside /wp-content/uploads/folder/
doesn't work with this path:
include_once("../../../../../uploads/folder/urls.php");
it works only if placed inside same folder as main.php with path ('urls.php');
Typically you will see the wp-content folder somewhere in the right panel of the web page straight away. If you cannot see a folder in the panel called wp-content , you may be able to find it in a different location in the left panel, such as: / public_html , /home/your_account_name , or /wordpress .
You want to find the WordPress theme folder. This is the only folder that you should ever modify the contents of. To access the theme folder go to wp-content/themes/your-theme-name. This folder contains all of the files that make up your theme.
Well, simply just go to your WordPress Dashboard. If you wish to make changes to your Theme, then navigate to wp-admin -> Appearance -> Editor. Afterward, you will be able to view the files inside your Theme.
you can use content_url()
it's located with http://www.example.com/wp-content
wp-content folder.
Or for path
you can use WP_CONTENT_DIR
it'll located to wp-content
folder.
require_once(WP_CONTENT_DIR. 'uploads/folder/urls.php');
Check more info Documentation
It seems strange. Do you have any error message when you run your main.php? Try to check again, maybe a typo somewhere. Do you take help of Text editor auto-completion when calling urls.php?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With