Cole Slaw
Forum Replies Created
-
Forum: Plugins
In reply to: Sharing object instance between filesForum: Plugins
In reply to: Sharing object instance between filesIn other words I want this to work:
[metabox2.php]
echo $video->example_property;
Forum: Plugins
In reply to: Using Ajax and create Dynamic option field with Setting APImmbee888
Would be appreciated if you told the community HOW you solved it.
Thanks!
Forum: Fixing WordPress
In reply to: Multi-site New User Registration Re-directForum: Networking WordPress
In reply to: Change wp-admin directory and other filesGetting closer to the solution.
This does the job well for wordpress:
https://wordpress.stackexchange.com/a/7832The problem is the .htaccess rewrite rules that makes me crazy:
The plugin says you should addRewriteRule ^admin/(.*)$ wp-admin/$1 [QSA,L]
But then it doesn’t work with sub-directory blogs.
I need a rewrite that:
- Only accepts Mydomain.com/admin and Mydomain.com/user/admin/ not Mydomain.com/user/read-about-admin or Mydomain.com/user/about/admin
- Doesn’t care about lack of trailing slash (Myadomain.com/admin)
My current .htaccess looks like:
RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] # ----- FROM STACKEXCHANGE RewriteRule admin/(.*)$ wp-admin/$1 [QSA,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L] RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L] RewriteRule . index.php [L]
Thanks!
Forum: Fixing WordPress
In reply to: Possible to duplicate a “template” blog using multisite in 3.0I’ve been looking for this feature since WPMU, and this is what I’ve found.
https://premium.wpmudev.org/project/new-blog-template (Premium)
https://wordpress222.wordpress.com/2010/07/09/blog-templates-2-5/ – I’ve used it myself, but it’s outdated now, but it might be a good start if you wanna pay someone to do this.
Forum: Fixing WordPress
In reply to: wp_nav_menu: List only 2nd level (separate submenu)?I can recommend the thread on Stack Exchange.
The answers from Rarst works perfect.
Forum: Fixing WordPress
In reply to: Pagination error on single.php – Query_Var is droppedYes, that’s true. I corrected it – but still the same result!
Forum: Fixing WordPress
In reply to: Pagination on the single.php templateI desperately need help with this to. It must be something with the rewrite rules??
Forum: Plugins
In reply to: Multiple blogs – shared pages and layoutStill haven’t found a solution to this. ??