On gform_after_submission
save the gform entry in post meta.
update_post_meta( $entry["post_id"], '_gform_submission_18_entry_13', $entry[13] );
In your template:
new WP_Query( array( 'post_type' => get_post_meta( get_the_ID(), '_gform_submission_18_entry_13', true ) ) );
Related Posts:
- Issues with title-tag and document_title_parts
- Define custom Page Template without its own .php file
- How to influence the information displayed on widget inside wp-admin
- Remove Page Title from Static Frontpage
- gform_after_submission content appears immediately after , not in post body [closed]
- How to use IF Statement in WordPress?
- Accepted arguments value in hook functions
- Get current page_id before loop, in functions.php
- Which action hook to use for function?
- Gravity Forms – Using a Form to Pre-populate A Gravity Form [closed]
- Modify a function without editing template
- Passing values from a widget to a function within a plugin
- Having a Function Inside of the Loop
- How to filter, restrict and return posts based on custom user meta information
- What did I do wrong in my functions code, that will not change the “Get New Password” text to “Send It”?
- Replace a menu with widget or a custom template file programmatically
- Override the WordPress core function wp_referer_field
- How to edit the Tags within the image file URLs?
- Can’t properly set the_title add_filter to show short_URL
- How to add_filter html template to middle of content
- (Woocommerce) Order by price when entering specific category
- Possible to hook into Media Library preview File column and use a custom image?
- Modify gform_other_choice_value for specific form and specific field in Gravity Forms
- Is it possible to use add_filter in an included file in the child theme’s functions.php?
- Insert Content Before div#main from the functions.php File
- Add Adsense code between job listings – wp job manager plugin
- Changing the text of Upload/Insert on Posts and Pages Screen
- Filter for replacing the WP_query object for a given category
- Save_post – Warning: Cannot modify header information
- custom error message for empty username and password using authenticate filter not working
- How Do I Unhook This Parent Theme Function?
- Force resize for all video content
- get last part of page url and add it as cat in wp_query
- How to make custom column Admin>Users sortable?
- How can I get my Script to work on the Login page?
- Change post order random through out the entire WordPress
- Trigger a custom function when option are saved in admin area
- Execute a ultimate member action when user role is updated
- Filter out other users comments. Visualize only own comments and editor role users’ comments
- Get Current Post ID in functions php, meta query filter
- Gravity Forms Button Text
- Output and filter data from a XML url
- Add to cart php not working [closed]
- How to use the query hook/filter?
- Add other social networks to TwentyNineteen_SVG_Icons class in child theme?
- Is possible add icon in title posts only in specific tag?
- WordPress Gravatar filter is removing my custom attributes
- Add sequential number to a Gravityforms form
- Generating an nonce for Content Security Policy and all scripts – How to make it match/persist for each page load?
- How to use wp_trash_post (or wp_delete_post) for deleting a (or all) post(s) from custom post type?
- create filter in functions.php
- How to filter $content in shortcode function
- Insert image in WordPress with HTML5 tag and caption function
- How to construct function for applying filter?
- Adding an external HTML link to a post thumbnail
- Footer disappears when using the_content ( )
- woocommerce change currency per category [closed]
- Filter Posts from the Main Query
- Get User Login Data (date, time… )
- Display tags that only appear in one category
- Run wp_kses_decode_entities on atom feed?
- Filtering out the #more anchor link that gets produced by
- Registration Hooks don’t appear to be working
- Can’t filter wp_get_attachment_link
- Redirect to another page using contact form 7? [closed]
- append to existing parent theme function
- how to access query string in wordpress?
- jQuery does not work
- Why does re-using this function not work? [closed]
- Pass parameter to hooked function using custom page template
- Add Element as a Filter to the_content
- Modify post filter to set custom number of posts per page and exclude child posts
- How to return hook data when multiple parameters are present?
- Hook into a function without a hook?
- Make wp_link_pages() suitable for Twitter Bootstrap markup
- How can I add a filter for specific categories on functions.php?
- What is the text that appears beside the page titles in the list of pages in the WP admin?
- How to add custom JavaScript in functions?
- Setting a default text for excerpts of a particular category
- How would I go about replacing this function in my child theme located in inc/template-tags.php
- Retrieve a value from Yoast SEO to use to set a default twitter card image honoring overrides
- Is my code correct to enqueue CSS on a specific page?
- Add_filter when value is no variable?
- Control the srcset much more (not all sizes in it each time)
- Filter yoast canonical add_action priority [closed]
- Filter an WordPress Function in (general-template.php)
- Adding bootstrap classes to video shortcodes
- How do I hook into the container of wp_nav_menu?
- Remove links from the_content when using filters wp_trim_excerpt
- Redefine function arguments before rendering
- Is there a way to prevent a function/method from being called outside a specific hook?
- How to edit classes in body tag?
- Auto log in hook is requiring a page refresh
- Custom Query Not Paginating
- Reset postdata not working on WP_Query in functions.php
- Filter nav menu items HTML tags and wrap inner text with span
- Call to undefined function is_home() or any conditional tags
- Wp-query Order By problem
- Function not working inside of a function in functions.php
- How can I add a class to a nav li depending on URL?