anjx
Forum Replies Created
-
Forum: Plugins
In reply to: [Gallery Manager] Fancy Gallery Pro incompatible with WP 4.4NOT RESOLVED
Forum: Plugins
In reply to: [FG Joomla to WordPress] ID Post wrong and very highActually I have many images. So the trouble is this!?
Forum: Hacks
In reply to: Rewriterule and mask original link from htmlSure, immagini is a real page created with wordpress.
I’m using tags generated with Nextgen Gallery plugin.Forum: Hacks
In reply to: Rewriterule and mask original link from htmlRyan you’re always very kind.
I simply include a list of link:<ul> <li><a href="https://www.site.com/index.php?pagename=immagini&gallerytag=schoes">Shoes</a></li> <li><a href="https://www.site.com/index.php?pagename=immagini&gallerytag=clothes">Clothes</a></li> <li><a href="https://www.site.com/index.php?pagename=immagini&gallerytag=beauty">Beauty</a></li> </ul>
Based at tag name (ex shoes) I’ll show a different gallery.
No function.i would like that the links were automatically rewritten in html:
<ul> <li><a href="https://www.site.com/immagini/schoes">Shoes</a></li> <li><a href="https://www.site.com//immagini/clothes">Clothes</a></li> <li><a href="https://www.site.com/immagini/beauty">Beauty</a></li> </ul>
Forum: Hacks
In reply to: Rewriterule and mask original link from htmlHi bcworkz,
can you suggest me a code to insert in htaccess, please?Forum: Hacks
In reply to: Rewriterule and mask original link from htmlI talk about of the link into the address bar of the browser:
If I insert this:
https://www.site.com/index.php?page_id=13281
I’m redirect to:
https://www.site.com/immagini
Forum: Hacks
In reply to: Rewriterule and mask original link from htmlThank you Ryan for your help.
So, I tried:add_rewrite_rule( '^immagini/?', 'index.php?page_id=13281', 'top' );
And I receive correct link:
https://www.site.com/immagini
So, I tries this code:
add_rewrite_rule( '^immagini/?', 'index.php?pagename=immagini', 'top' );
And receive a wrong url, but correct page (immagini):
https://www.site.com/?pagename=immagini
Then, I tried this:
add_rewrite_rule( '^immagini/ngg_tag/tags/([^/]*)/?', 'index.php?page_id=13281&gallerytag=$matches[1]', 'top' );
But I receive this url:
https://www.site.com/immagini?gallerytag=shoes
With correct page but not friendly url.Where is the bug?
EDIT:
After added this code:add_rewrite_rule( '^immagini/?', 'index.php?page_id=13281', 'top' );
I’ve seen that the same trouble: the link are not friendly but they have just the correct redirect. Then I see this link:
https://www.site.com/index.php?page_id=13281
Forum: Hacks
In reply to: Rewriterule and mask original link from htmlYes, are in htaccess. If I’ll removed it, the redirect not work and the url is:
https://www.site.com/?pagename=immagini&gallerytag=shoes
Forum: Hacks
In reply to: Rewriterule and mask original link from htmlNothing. Not work ??
Forum: Hacks
In reply to: Rewriterule and mask original link from htmlYes, I’ve added rewriterule in .htaccess.
Now I tried to insertadd_rewrite_rule
in function.php but the situation don’t change:add_rewrite_rule(
‘^immagini/ngg_tag/tags/([^/]*)/?’,
‘pagename=immagini&gallerytag=$matches[1]’,
‘top’
);As regards
add_rewrite_tag
, I do not need of a permalink tag. It is necessary?Forum: Hacks
In reply to: Function to change page title not works in pluginFound solution, I have put the code in the header.php file, before <title>.
Thanks Ryan.Forum: Hacks
In reply to: Function to change page title not works in pluginMaybe I’m wrong position in the code .. I keep you updated ??
Forum: Hacks
In reply to: Rewriterule give me always 404 errorOk, thank you very much. I found solution. My template have 2 function.php. Inserting the code in the function.php inside “framework” folder, the code works fine ?? 10 star for you ??
Forum: Hacks
In reply to: Rewriterule give me always 404 errorI think that it’s the right way. I’ve added this code with the page_id of my contact page, but not work, when I go to the contact page remains without html extension ??
Forum: Hacks
In reply to: Rewriterule give me always 404 errorI want the contact page with html extension and the gallery page without html extension.
I’ve tried to put html extension on all page with php. So I’ve tried to remove html extension to gallery.html page with htaccess rule, but I have the same problem: 404 error. Seem that if I change the default rule by htaccess, I receive 404 error.
I tried also custom permalink plugin and it works fine, but I don’t want use a plugin for this issue.