The cause of this problem is the wordpress checking for his cookies – and cookies are different for each folder. So the way of fixing can be temporarily save WP cookies too session and then hardcode them after redirect before the WP load.
Solved thanks to https://stackoverflow.com/questions/21542795/wordpress-allow-previews-outside-wordpress-folder
Related Posts:
- Best Practice for PHP
- retrieve thumbnail from post ID of best selling product in category
- How to create a WP_Query to search the Title or Tag?
- how to display active, upcoming and past event with featured listing with pagination
- Get list of WP Updates Across Sites
- if statement on database query
- Duplicates with WP_Query loop
- WP_Query meta_query results date by date
- WP_Query sort using multiple numeric meta values
- Help with adding pagination to custom wp_query
- How to get to a specific position in wp_query?
- API response to be stored locally
- Use wp_get_recent_posts with search term
- WP_Query loop, does not display special characters in title correctly
- Remove query string specific key value
- have_posts() execution failure
- How to filter posts by post format “standard” from wp-json api?
- Can’t search posts using WP_QUERY inside AJAX Function
- How can I use wp_query to show all product data using just the products ID?
- Using foreach loop breaks
- Loading the same WP_Query in two different wordpress .php templates
- How to prevent WP_Query function from returning all posts when empty?
- Get users that likes the post
- auto-populating custom nav with all items from custom post type
- inserting a post from an extern php file but post content doesn’t show on wp site
- Security for data obtained from the database
- Create a Blog Template Page
- Exclude posts with specific metadata from search?
- Display an image if odd number of posts in grid
- How to retrieve the data from the sever and displaying it in a page?
- How to determine from a different folder (outside wordpress) if a visitor is logged into WordPress
- How to overwrite orderby with add_query_var
- get_the_ID() in the footer returns wrong value
- How to show meta value code HTML after x paragraph
- Form search query – displaying ACF “Post Object” field as results
- change the default order of posts only for specific categories
- extract serialized array to use for wp-query
- WP_Query multiple post results
- How can I split my query result in 2 arrays?
- echo var into wp_query
- How to get post category list as select in front-end?
- Order a WP_Query by meta value where the value is an array
- How do I check if there is a tag in the title
- Toolbar Hidden in a Virtual Page
- the_post(); prints out style text into my HTML?
- Wp Query : Order by distance lat,lon
- Let current user know pending posts counts using wp_query
- get_terms with specific id order
- “pre_get_posts” orderby custom date field in different format?
- WordPress Search Ajax + Isotope + InfiniteScroll
- get different meta-data of a complicated query at the same time
- Using a new WP_Query inside the loop
- wp_query – Exclude the first thumbnail from lazy loading on archives
- WordPress sorting posts by date and title using a dropdown
- How to get specific multiple pages excerpts at homepage?
- Usermeta data unserialize, extract and display in table in WordPress
- Query on a repeater date (acf)
- can I extend the WP_Query class to deal with ‘duplicate’ posts created by joining to wp_posts?
- Trying to get pagination working on WP_Query() post grid
- Check the database for a postmeta field
- Wp-query output correct, but the loop shows one less item (only sometimes)
- How to display sticky post always at the top (before regular post) in wordpress?
- Combine multiple queries, array_unique returns nothing
- How to display last whole post on the homepage
- wordpress query returning unexpected results
- Custom Post type Ajax search results
- Display only upcoming events / Show all events when archive year is selected
- wp_query beginner
- Transfer WordPress Login Session to an Extended Webpage on the Same Domain
- How can I display a query in a page?
- direct query to post_meta table
- Add post class in custom loop (WP_QUERY)
- WooCommerce – Print Processing orders [closed]
- List of child pages fetch next results at link click
- List sibling pages widget, exclude current page
- Why does WP_Query show only the same post even with different categories and endwhile?
- Do_shortcode on PHP file outside theme ALMOST works
- How to get category pages to look like a certain archive page?
- Run A Pre-Built Core PHP Application Under A WordPress Page or Post Route
- show/hide attachments
- Post Title Not showing up
- reorder a WP_Query, using a dropdown
- Custom query_posts() parameter
- WP_Query based on another query on the page
- How to modify this function to exclude also the post belonging to a specific category?
- Show post like this image in my newssite [closed]
- Display biography post for today’s birthday person
- Changing regular db connection to $wpdb
- How do I run the following script from my articles page?
- XML WP_Query problem in PHP 8.0 and 8.1
- How to initialise WP_Query on the basis of a specific meta_value and continue iterating rest?
- Three different queries on same page
- How to sort search result by post_title, then by post_content
- How do I display WooCommerce products in my query to rows of 3?
- How to get posts by a certain author in inner loop using outer loop variable or post title WordPress
- Show post in elementor based on views and specific category with query id feature in elementor
- AND and OR in my CPT search query depending on checkbox
- External WP_Query call from PHP crashed after version update
- How can I save the HTML output of a WP_Query function as a variable?
- How do I use fields => ids in an array with WP Query?