Media library not loading after switching the main site of multisite

I switched the subsite and main site of a multisite. Now, the images are not loading in the media library and posts of the main site. However other subsites are working fine. The images of the new main site are still available in their old directory: domain.com/wp-content/uploads/sites/2/image-title/ However, the image urls of the media library … Read more

Loading files for theme and child theme (Require)

There seems to be so many options which one should i go for..it’s really confusing? I have used get_template_directory(). What i want is to use a function that works best with child theme and that should work alone if no child theme is used..pls help get_theme_file_uri() get_parent_theme_file_uri() get_theme_file_path() get_parent_theme_file_path() get_template_directory() TEMPLATEPATH 1 Answer 1 get_theme_file_uri(), … Read more

WordPress multisite subdirectory on nginx behind reverse proxy

I can’t seem to make wordpress multisite subdirectories work behind my reverse proxy. Locally (from lan ip addresses) all works, I can access the main domain, sub-directories and all dashboards. The moment I add a reverse proxy, I cannot access the network dashboard (Redirect loop) nor the multisites subdirectories (redirects to lan ip). If I … Read more

Can’t access WordPress multisite after connecting to domain

Installed WordPress Subdirectory Multisite on Vultr server, connected Google Domain, but can’t access it. It is showing ERR_CONNECTION_TIMED_OUT. When checking DNS, A records are fine, but CNAME records are not. Can’t understand why, as in Vultr side I can’t add any cname records ( currently it has- cname * mydomain.com) In PowerShell I ran tracert … Read more

Custom post types with custom directories

I’d like to run a WordPress install with open registration so that anyone can sign up and post to a custom post type that would live at… domain.com/open/date/the-post-title I’d also like to run a blog on the same WP install that only I can post to that would live at… domain.com/blog/date/the-post-title Is something like this … Read more

Change multi-site installation from sub-domains to sub-directories

I’ve searched everywhere but I don’t seem to find a solution for this. I have a WP installation that is using sub-domains and doesn’t have yet any other sites besides the main site. What I want to do, without reinstalling from fresh, is enabling sub-directories. I tried changing in the wp-config define( ‘SUBDOMAIN_INSTALL’, true ); … Read more

Install theme on multiple domains

i’m hosting several sites. they all have the same base theme that i need to install. I want to develop this theme and have them updated on all the sites simultaneously. I have the following folder structure /theme/ \ mytheme /domain/ \ foo.com \ foobar.com \ foosite.com Would there be any issue with symlinking each … Read more

What is the best way to move a plugin´s subdirectory+files to wp-content/uploads-directory?

I am developer of the plugin Leaflet Maps Marker (http://www.mapsmarker.com – “Pin, organize & show your favorite places through OpenStreetMap, OGD Vienna or any custom WMTS-map”) and have one question: the plugin contains about 100 marker icons from Maps Icons Collection (mapicons.nicolasmollet.com) which can be used to mark your favorite places. These icons are stored … Read more