Thread Starter
reter
(@reter)
perfect thanks, and that was a very fast reply!! cya
How to install Redirectify perfectly
1. install Redirectify
2. activat it
3. change a single line in the plugin php file. Look for:
wp_redirect($redirect);
And change that to:
header(”Location:{$redirect}”);
4. Go Write > Write page > and create a page
5. scroll to the bottom of the page you are creating and Type “redirect” in the – middle – Key field (no quotes) of the custom field
6. Type the URI in the Value field Click “Add custom field”.
there you have it
A clarification to the above (punctuation DOES matter 🙂 )
Hyszyanz doesn’t mean the plugin.php file, he means the plugin‘s php file, or redirectify.php.
And as it is typed above, it calls up an error.
Parse error: syntax error, unexpected ‘:’ on line 51
wp_redirect($redirect);
And change that to:
header(”Location:{$redirect}”);
Thanks for suggestion. What’s the point in making this change?
What’s the point in making this change?
Because of changes to WP since Redirectify was last supported, many themes won’t allow a link to be created using the ‘redirect’ Custom Field. When you try, instead of ending up with a link in your navbar or wherever, you’ll just end up with a draft post. This change fixes that.
breakingball–are you referring to the problem where a Page is turned into a draft if a Custom Field is assigned to that Page when first creating the Page?
If so, first create the Page without the Custom Field, then after you Publish the Page, go back and edit the Page, and add the Custom field(s).
Thanks, Michael. I hadn’t known that (although the change above has corrected this issue for me wrt to Redirectify).
thanks! I’ve also in the past just published and then went back in to create custom field. I’d rather change the code as you offer, but as Moodles mentioned, I get an error. Can you double check what you typed in or have any suggestions on what is causing error?
Can you double check what you typed in or have any suggestions on what is causing error?
Don’t copy/paste his code from above. The quotation marks are both end quotes (or whatever they’re actually called). Type it in yourself.
If that’s not it, I don’t know what to suggest.
Thanks, breakingball, I should have known better than to copy/paste into my code. So I now do not have an error but it still creates a post draft if I add the custom field then publish the Page. Thanks for the help anyway, guess I’ll have to stick with the 2 step process. 🙂
could not get it to work either