Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Forum Replies Created

Viewing 11 posts - 46 through 56 (of 56 total)
  • Author
    Posts
  • in reply to: Custom URL #20726
    Samuel
    Participant

    Hi Tom,

    I made a staging of my website to test things safely and here are the results :

    – I don’t understand why but first function for title is not working anymore.
    – Function for image is working well.
    – Function for button is breaking everything on page.

    To be sure it wasn’t a theme or plugin conflict I deactivated every plugins except WP Show post, it didn’t changed anything. And I switched to Twenty Twenty Theme, same result.

    You can check the test page here : https://test.monvoyageencolombie.com/test-wp-show-post-with-custom-link/

    Here are the filters I put in my child theme function.php :

    /*** AJOUTER FILTRE WP SHOW POST ***/
    
    add_filter( 'wpsp_title_href', function( $href ) {
        $custom_url = get_post_meta( get_the_ID(), 'url-booking', true );
    
        if ( $custom_url ) {
            return $custom_url;
        }
    
        return $href;
    } );
    
    add_filter( 'wpsp_image_href', function( $href ) {
        $custom_url = get_post_meta( get_the_ID(), 'url-booking', true );
    
        if ( $custom_url ) {
            return $custom_url;
        }
    
        return $href;
    } );

    I did’t let the Button function as it’s breaking the page.

    Can you see a light in the darkness ?

    Thanks for your help

    in reply to: Custom URL #20651
    Samuel
    Participant

    Hi Tom,

    The function is working well but partially, Title’s link is redirecting to the custom URL fine, but Image and Button’s link are redirecting to the original page…

    Is this possible to make all links to redirect to custom URL ?

    Thanks for your help,
    Sam

    in reply to: Custom URL #20603
    Samuel
    Participant

    Hi Tom,

    Coming back to do some tests with your Alpha 1.2 version.

    Could you help me understand how to implement the “get custom url” function we were talking about ?

    To remind you what I’m trying to do is :

    I have hotel pages where I use a custom field I called “url-booking” and where I put an URL.
    I need WP Show Post to link to this “url-booking” custom URL

    Here is a example of what I’m doing right now using another (but heavy) plugin : https://monvoyageencolombie.com/ou-loger-region-caraibe/

    Thanks for your help,
    Samuel

    in reply to: Custom URL #19241
    Samuel
    Participant

    Great news ! Thanks Tom

    in reply to: Custom URL #19164
    Samuel
    Participant

    Hi Tom,

    Can you confirm me you’re adding this filter we were talking about in the next update coming ?

    Thanks a lot

    in reply to: Custom URL #18432
    Samuel
    Participant

    Thanks a lot

    in reply to: Custom URL #18378
    Samuel
    Participant

    Thanks for your reply Tom,

    Just to know what’s the next step for me, do you have any idea about when a new version would be released ?

    in reply to: Custom URL #18363
    Samuel
    Participant

    Hi again,

    I just wanted to add that I would need this only for custom post types called “hotel”.

    I really don’t speak the php and it’s frustrating because I know it would something like “if post is hotel then link to custom url”

    I saw a reply you made regarding a similar request for gallery

    So would it be something like this possible ?

    add_filter( 'wpsp_post_href', function( $href ) {
        if ( 'hotel' == get_post_type() ) {
            return get_field($url-booking);
        }
    
        return $href;
    } );
    in reply to: Bug : Arrow sign –> displaying on grid #16610
    Samuel
    Participant

    Sorry about that, it is working.

    Thanks a lot Tom !

    in reply to: Bug : Arrow sign –> displaying on grid #16601
    Samuel
    Participant

    Hi Tom,

    Thanks for your reply, but sadly this is not working.

    Any other idea ?

    in reply to: Different settings on tablet #16507
    Samuel
    Participant

    Re,

    Finally I managed to do it with this CSS :

    @media only screen and (max-width: 1024px) and (min-width:767px) {
    .wp-show-posts-single:nth-child(9) {
    display: none !important;
    }
    }

    Do you thing it’s ok ?

Viewing 11 posts - 46 through 56 (of 56 total)