front-page.php is a static front page (if you rename your current template front-page.php, and don’t select nothing in Settings->Reading it works exactly like now.
However, if you want to use the page approach and you don’t use mcdata for query, remove the filter you posted, and simply retrieve the mcdata value in your template using $_GET['mcdata'];.
Related Posts:
- Using WordPress public query variables
- How to Use Wildcards in $wpdb Queries Using $wpdb->get_results & $wpdb->prepare?
- How to tell if $query_var isset?
- MySQL variable in query
- Declaring a var, placing it in a query and using the output of the query?
- Not getting input from get_query_var
- YearMonth datequery
- How can I create a meta_query with an array as meta_field?
- Query multiple meta key values?
- Is there a way of increasing the speed of this query?
- How can I query all users who registered today?
- Reversing the order of posts AFTER the query is performed
- what are the numbers between curly brackets in search query
- When/why does ‘$query->get( ‘tax_query’ );’ return empty?
- How to get link and title of next and previous post on single page
- Search custom post type by meta data
- Multipart/formatted MySQL query problem
- Remove [gallery] shortcode altogether
- query multiple taxonomy and show post count
- Categories and products in random order
- add_query_arg() XSS Vulnerability
- Change searched term
- Query Posts By Post Publish Date, but sort by Custom Meta Key
- How to execute a SQL-query which contains multiple queries using $wpdb->query?
- Only show upcoming event or current events
- Why a URL with a query is always slower than that without a query?
- Maintaining Queries in URL
- How to orderby multiple meta fields with another meta query
- Query posts using meta_key
- Modify users.php query with multiple taxonomies
- MySql Query very slow
- wpdb query problem to access previous 3 days posts
- I want to create a filter for the query string is this possible?
- Exclude categories from the_category();
- How can i show all categories using wp query?
- All in One Calendar Plugin Custom Post Type Query [closed]
- Get Posts from Last 24 hours and Sort them via GD Star Rating
- Query returning same results even though the ID changes
- query statement containing variable won’t execute
- How to get events using multiple custom meta fields?
- Get posts from category with custom query
- Related post based on content
- Random Page Rewrite
- How to interfere to default search to make it search in custom fields?
- How to pass menu slug as a variable to wp_nav_menu?
- How to pull posts into two columns with different image sizes using $counter variable?
- WP_User_Query with more than two custom meta values
- Select column name dynamically mySQL Query
- WordPress Mysql query and Duplicate
- How to “orderby” the first array in a meta_query that uses multiply keys?
- Target a page with query
- List only parent attributes on woocommerce admin atrributes page
- Merge CPT Taxonomy and Post Taxonomy in $query->set
- Unable to display multiple parameters from url by javascript through shortcodes
- Order posts ascending from posts in array
- Display data from phpMyAdmin with WordPress
- Add rewrite rule for archive search
- custom sorting media with multiple filters – error: not unique table/alias: wp_postmeta
- How can I get posts by 2 meta keys, prioritising one of them?
- How to create a filter and add query params to all links
- Get 2 meta values from meta key column
- SQL query to list all posts of specific post type with a specific set of associated postmeta values as a column
- WordPress add_query_arg from ajax and make url friendly
- My custom pagination not displaying
- Wpdb->last_query returns bad query
- implementing my wp_query using $wpdb class
- Category_in return empty
- WP search exclude last letter from string
- Query reversed when I use “category__not_in”
- modifying main query to query for ranges e.g. from 1999 to 2016
- How to reduce the load / no of queries on MySql Database
- Querying users by meta value and getting a strange answer
- Display result from custom post meta query
- Show certain number of post from tags
- Wpdb empty result only if language is Russian
- Include custom table in query
- How to fix this insert? Don’t work for me!
- Display list of most recent grandchild (third tier) pages
- How can I display a number to represent the order of post?
- Problem on wpdb queries, wp_insert_post, wp_insert_user etc. The query runs twice
- Sort order in get_posts [closed]
- Query unique author ids with published post of type job
- Sort loop with query in the link
- About WP’s save_post action
- $wpdb: how to use a query as a base for another query?
- Wpdb generates too many queries
- Multilingual WordPress page – using URL to determine language?
- Displaying posts by year
- list or get meta_key where meta_value is ‘something’
- WordPress loop: Display if posts exist
- Query posts alphabetically within this function
- Conditional Tag Custom Querys?
- WP_Query with checkbox meta_query – WordPress [duplicate]
- query posts only works on the first page
- Custom Query for wp_posts using wp_postmeta
- What is the best way to cache pages and queries in WordPress?
- How to figure out correct wp_options to have autoload=’yes’
- Why does $_GET return values but get_query_var does not?
- Sort users in admin screen by meta value whether it exists or not
- Custom API how to return int field