jaiunblog
Forum Replies Created
-
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] space and linebreak in templateI use Minify HTML plugin with this setup.
https://ps.w.org/minify-html-markup/assets/screenshot-1.png?rev=1615317
I will turn off “he Minify option turned on from Performance settings” next time Amp for WP make an update ??Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] with html code show the html resultForum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] space and linebreak in templateIf I don’t remove the breakline and convert to space I’ve got this
<amp-img layout="responsive" src=path/to/imgwidth=450height=270></amp-img>
and no image to seeForum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] with html code show the html resultStrange I think this post was named “pre with html code show the html result”.
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] with html code show the html resultI deal with this :
function echapcode($a) { return "<pre $a[1]>".htmlspecialchars($a[2])."</pre>"; } $texte = preg_replace_callback('#<pre (.*?)>(.*?)</pre>#ius', 'echapcode', $text); add_filter('the_content','new_pre_content'); function new_pre_content($content){ if ( function_exists( 'ampforwp_is_amp_endpoint' ) && ampforwp_is_amp_endpoint() ) { $content = preg_replace_callback('#<pre (.*?)>(.*?)</pre>#ius', 'echapcode', $content); } return $content; }
- This reply was modified 7 years, 1 month ago by jaiunblog.
Forum: Fixing WordPress
In reply to: Permalink helpYou need to delete join-us (in trash ?).
Forum: Networking WordPress
In reply to: Giving WPMU Its Own Directory Not At The InstallI did it with .htaccess, mysql and wp-config update.
Forum: Fixing WordPress
In reply to: Custom post and category link to not foundAnd I found this :
https://www.wpbeginner.com/wp-tutorials/how-to-add-categories-to-a-custom-post-type-in-wordpress/
5 minutes after my question…Forum: Hacks
In reply to: rearrange and make a sequence by typeThank you bcworkz,
I can’t edit my question but this is not 10 posts but more something like 24 A,42 B,30 C…
I try to simplify my question but I do it wrong :-/I don’t know if it’s better way but 3
new WP_Query
for each type,$myquery->found_posts
to check the count and some while and if to do my loop ?good !
It works for me ! wp 4.4 & iThemes Security 5.1.1
Forum: Plugins
In reply to: [WPS Hide Login] logout actionfound !
add_action('wp_logout','go_home',10000);
Forum: Networking WordPress
In reply to: path with slash in the nameNo, I commented it.
Forum: Networking WordPress
In reply to: path with slash in the nameI fix it with this (but don’t understand at 100%)
# add a trailing slash to /wp-admin #RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin/network.*$ $1wp-folder/wp-admin/network/ [R=301,L]
I think my wpmu works with 2 .htaccess, the root and the sub-folder.
Forum: Networking WordPress
In reply to: path with slash in the nameFound this : https://maisonbisson.com/post/14052/wordpress-hacks-nested-paths-for-wpmu-blogs/
But now https://mywpmu.com/wp-admin/network/ doesn’t work…