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
- When tax_query used, results disappear (0 =1 produced)
- Add action hook conditionally – only when home.php in use
- why doesnt is_home() work in functions.php
- How can I tell if I’m on a login page? [duplicate]
- Why get_header() or get_footer() does not run twice if called in the same php file?
- Convert hyphen to underscore in permalinks
- Programmatically Add Font-Awesome Icons to Category Widget
- Remove bulk actions based on user role or capabilities
- Adding extra SVGs to TwentyNineteen child theme using class TwentyNineteen_SVG_Icons
- How to change a certain text or term of WordPress into a custom into the whole site?
- Adding body class when post contains a specific shortcode
- Manipulate Output of wp_list_something: select menu instead of li’s
- Increment price for Woocommerce Minicart [closed]
- how to change link of some wordpress pages
- Show excerpt for only first post in query
- Proper way of using functions in action hook?
- How to properly add function called by action-hooked function to functions.php?
- str_replace function in theme
- Pass info from functions.php to plugin
- Event Calendar using insert_post_data after save_post and insert_post after post_transition draft_to_schedule
- How do I add Bootstrap and LESS to my migrated WordPress site?
- How to add nav menu items to a specific position within a menu
- Publish/Update post is changing image links from file url to post url
- WordPress Gravatar filter is removing my custom attributes
- Add sequential number to a Gravityforms form
- Adding an external HTML link to a post thumbnail
- Footer disappears when using the_content ( )
- Get User Login Data (date, time… )
- how to access query string in wordpress?
- Why does re-using this function not work? [closed]
- Modify post filter to set custom number of posts per page and exclude child posts
- What is the text that appears beside the page titles in the list of pages in the WP admin?
- Setting a default text for excerpts of a particular category
- Add_filter when value is no variable?
- Adding bootstrap classes to video shortcodes
- Auto log in hook is requiring a page refresh
- How to have different site identity logos on each page on Astra Theme [closed]
- How to display the_archive_title() and the_archive_description() – “weird” interaction
- Native gallery custom html output
- The_content and Preg_replace in loaded Iframe [closed]
- WordPress wraps span tags into p tags
- Replace admin header logo with an image
- relation OR instead of AND – Filtered term ID’s in loop
- is_home() not working in functions.php file
- Any adverse effects of adding apply_filters to a function?
- Adding custom social icons to the social media icon block in the Gutenberg editor?
- Does hook have an effect on increasing the page load?
- Populate acf-field, depending on block name
- post value to function with Ajax and jQuery
- Allow user only create specific tags
- Use action, filter, or hook to append HTML to WordPress plugin function
- Child theme remove parent filter in functions
- Calling hooks in functions
- Remove External Links from WordPress posts Using add_filter() in Theme functions.php
- How to add custom column into custom post, when field is select
- Hide disclaimer from summary excerpts
- Only seems to be displaying one child when there are supposed to be multiple
- Shortcode to eliminate and replace with
- Search and Replace Script Loader in Head Only Works in Footer
- Problem in outputting shortcode
- Allow tags and attributes in post and pages content
- Override parent theme function that is not hooked or in the functions.php file
- Query is not work
- How to Insert A List of Posts in A Category Written by the Author into the Author Archive
- How can I append and prepend something to all post hyperlinks without using ::before or ::after? PHP hook solution?
- Filter to strip unnecessary attributes
- Insert image between X number of posts but on specific paginated pages?
- Filters do not work when there are multiple (one works)