Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix gv_entry_link shortcode in views page #2084

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions includes/class-gravityview-entry-link-shortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ private function shortcode( $atts, $content = null, $context = 'gv_entry_link' )

$this->view_id = empty( $this->settings['view_id'] ) ? GravityView_View::getInstance()->getViewId() : absint( $this->settings['view_id'] );

if ( empty( $this->view_id ) && get_the_ID() ) {
$this->view_id = get_the_ID();
}

if ( empty( $this->view_id ) ) {
gravityview()->log->error( 'A View ID was not defined and we are not inside a View' );

Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Beautifully display your Gravity Forms entries. Learn more on [gravitykit.com](h
* Timeout issue when rendering a page/post with GravityView Gutenberg blocks when Yoast SEO is active.
* View editor fields added to the Single or Edit Entry layouts inheriting options from the View type set in the Multiple Entries layout.
* An issue in the Search Widget configuration where adding a Date field caused the search mode ("any" and "all") to no longer be toggleable.
* `[gv_entry_link]` shortcode not rendering inside the Custom HTML block.

= 2.25 on June 5, 2024 =

Expand Down