guarriman
Forum Replies Created
-
Forum: Plugins
In reply to: [Yoast SEO] activation gives 500 internal errorIt’s a very common error of this plugin and it seems there is no solution :-/
Forum: Fixing WordPress
In reply to: How to limit the length of an URL (Post slug)?Mmm… it doesn’t work ??
If I include that line, then old permalinks don’t appear.
Forum: Fixing WordPress
In reply to: How to limit the length of an URL (Post slug)?Hi Viper007Bond. Thank you very much for your answer.
I don’t mind if the URLs are ugly.
Anyway, I modified ‘functions-formatting.php’, and added this line
at the end of ‘function sanitize_title’ (before returning $title):
$title = substr($title, 0, 30);It works.
Forum: Fixing WordPress
In reply to: WP won’t show a static pageSOLVED.
It was a weird issue. My ‘.htaccess’ file contained two parts:
<IfModule mod_rewrite.c>
……
</IfModule>
# BEGIN WordPress
<IfModule mod_rewrite.c>
….
</IfModule>
# END WordPressSo WP was writing on the last part, but Apache was only reading the first one.
Forum: Fixing WordPress
In reply to: WP won’t show a static pageWithin ‘.htaccess’, some lines of a static page which works.
RewriteRule ^(static-page-which-works)/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?pagename=$1&feed=$2 [QSA,L]
RewriteRule ^(static-page-which-works)/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?pagename=$1&feed=$2 [QSA,L]
RewriteRule ^(static-page-which-works)/page/?([0-9]{1,})/?$ /blog/index.php?pagename=$1&paged=$2 [QSA,L]
RewriteRule ^(static-page-which-works)(/[0-9]+)?/?$ /blog/index.php?pagename=$1&page=$2 [QSA,L]
RewriteRule ^(static-page-which-works)/trackback/?$ /blog/index.php?pagename=$1&tb=1 [QSA,L]Forum: Fixing WordPress
In reply to: WP won’t show a static pageInto my ‘.htaccess’ (it was automatically written by WP):
RewriteRule ^(my-static-page)/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?pagename=$1&feed=$2 [QSA,L]
RewriteRule ^(my-static-page)/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?pagename=$1&feed=$2 [QSA,L]
RewriteRule ^(my-static-page)/page/?([0-9]{1,})/?$ /blog/index.php?pagename=$1&paged=$2 [QSA,L]
RewriteRule ^(my-static-page)(/[0-9]+)?/?$ /blog/index.php?pagename=$1&page=$2 [QSA,L]
RewriteRule ^(my-static-page)/trackback/?$ /blog/index.php?pagename=$1&tb=1 [QSA,L]Forum: Fixing WordPress
In reply to: WP won’t show a static page‘https://myserver/blog/?page_id=72’ works but
‘https://myserver/my-static-page/’ doesn’tForum: Fixing WordPress
In reply to: WP won’t show a static pageI chmoded 666 (read and write)
Forum: Fixing WordPress
In reply to: WP won’t show a static pageHi moshu.
Thank you for your answer. I changed in the meantime my permalinks in order to use “nice” permalinks.
I’ve just chmoded +w ‘.htaccess’, created a new static page, but I’m still unable to see it ??
Forum: Fixing WordPress
In reply to: WP won’t show a static pageYes. I did.
Wait a moment…
Forum: Fixing WordPress
In reply to: WP won’t show a static pageIn fact, the first created pages work but the lasts I created don’t.
Forum: Fixing WordPress
In reply to: Unable to edit the first part of my posts> your problem sounds like you have a seperate post content and excerpt written.
I was able to edit it by usin phpMyAdmin.
Forum: Fixing WordPress
In reply to: How to limit the length of an URL (Post slug)?I consider it’s safe to edit Post Slug after it’s already published, since ‘post_name’ field into ‘wp_posts’ is also changed.
You must be careful, however, if you broadcasted the old URL on the Internet, because the old URL is not available anymore. So you must edit the URL/PostSlug just before publishing the post.
Forum: Fixing WordPress
In reply to: How to store Spanish charactersYes, I’m creating a PHP-plugin which uppercases text. However, I’m unable to do it.
strtoupper(“televisi?3n”) =====> TELEVISI?3N
It’s due to special characters (instead of ‘televisi?3n’, I’m trying to uppercase ‘televisi???3n’).