Skip to content

Commit

Permalink
Fix gv_entry_link shortcode in views page (#2084)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcasual authored Jul 30, 2024
2 parents a198e66 + 9656a07 commit 4c85e38
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
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

0 comments on commit 4c85e38

Please sign in to comment.