Plugin Directory

Changeset 3354152


Ignore:
Timestamp:
09/01/2025 05:23:49 PM (7 months ago)
Author:
angel_aparicio_gomez
Message:

Fix permalinks in shortcode

Location:
basic-portfolio
Files:
8 added
2 edited

Legend:

Unmodified
Added
Removed
  • basic-portfolio/trunk/readme.txt

    r3190648 r3354152  
    33Tags: social, share
    44Requires at least: 6.0
    5 Tested up to: 6.7
     5Tested up to: 6.8.2
    66Requires PHP: 8.0
    7 Stable Tag: 0.2
     7Stable Tag: 0.3
    88License: GPLv3 or later
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    1717== Changelog ==
    1818
     19= 0.3 =
     20* Fix permalinks in shortcode
     21
    1922= 0.2 =
    2023* Revised and updated to WordPress 6.7
  • basic-portfolio/trunk/shortcode.php

    r2974620 r3354152  
    3333            $shortcode .= '<div id="work-porfolio-element-'.$post->ID.'" class="work-porfolio-element">';
    3434               
    35                 $shortcode .= '<a href="'.$post->guid.'">';
     35                $shortcode .= '<a href="'.get_post_permalink($post->ID).'">';
    3636                    $shortcode .= '<div class="work-porfolio-image">';
    3737                        $shortcode .= get_the_post_thumbnail($post->ID);
Note: See TracChangeset for help on using the changeset viewer.