0
votes
0answers
35 views

When WP_Query only returns 1 post, how do I automatically redirect to that post?

I've been searching around for a few hours now and can't figure out how to do this. Seems really simple. I've seen lots of redundant examples on how to redirect to a single post when a search result ...
1
vote
0answers
105 views

Set static page/post from another blog on same network

I have a multisite project and have a small problem with static front page/post. In general i am looking for a way to choose a static page/post out of the whole network on my main blog. Now i'm not ...
1
vote
2answers
805 views

Posts are being redirected to xampp home page

I have a wordpress site, I downloaded it from live and configured it on local using xampp. When i click on any post, it redirects me to localhost/xampp instead of post page my .htaccess is like ...
0
votes
1answer
124 views

Redirect posts to sub domain except pages

We have a WordPress site, which contains posts and pages. Now we moved posts into sub domain but we kept pages into root domain. Only Posts has .html extension and there is no difference in the URL ...
1
vote
0answers
164 views

Some posts from custom post type to subdomains

I have custom post type where all posts associated with some persons. Like: mysite.com/masters/master-name/ And i need to have redirection from master-name.mysite.com. This redirection will be ...
0
votes
2answers
926 views

add_rewrite_rule and template redirect not working

I have the following pairs: add_rewrite_rule('^questions/ask/?','index.php?pagename=ask','top'); if(is_page('ask')){ $tname = 'add-question.php'; ...
0
votes
2answers
960 views

Display most recent post in category instead of archive?

I've successfully redirected my blog page to my most recent post - i.e. so when you click the 'blog' link in the nav it goes to the most recent post page and you can click next/prev buttons to ...
0
votes
2answers
524 views

Why is WordPress redirecting users to random posts after commenting?

After commenting on one of my posts, WordPress redirects me to another random post. Only after, when checking the previous post, I can see that my comment was posted. Still, why is WordPress sending ...
0
votes
2answers
140 views

301 Redirecting posts without %postid% (just %post_name%) in permalink to ones with %post_name%_%postid%

Just wondering if its possible to redirect existing posts which are permalinks of just %post_name% to %post_name%-%postid% ? Is there a plugin which can pick this up? Dont want to lose rankings on ...
0
votes
1answer
811 views

Redirecting to a post based on a GET parameter and a custom field

I'm trying to redirect to a specific post based on a GET parameter. The value of the GET parameter is the value of a specific custom field. For example: http://somedomain.com/wordpress/?fid=xyzzy ...
1
vote
1answer
278 views

Phantom 302 status code when sending a POST requests on pages

I really hope I've got a simple issue in front of me here, as it's sort of driving me up a wall. Short story: submitting a simple form on the front end of the site results in a 302 Found redirect, ...