Support » Plugin: WP Tiles » Beta 1.0: Link to Webpage

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mike Martel


    Hi Russell,

    I just added a filter to WP Tiles that makes this possible with little custom coding: every tile that links to a post gets its permalink through the filter wp_tiles_permalink with the parameter $post_id.

    To give you an idea, you can give a single post an external link (say, post id:12 and the link to like this:

    add_filter( 'wp_tiles_permalink', 'my_theme_wp_tiles_permalink', 10, 2);
    function my_theme_wp_tiles_permalink( $ret, $post_id ){
        if ( !$ret && 12 === $post_id )
            $ret = '';
        return $ret;

    You can of course make this more fancy using meta fields, but this is the basic idea.

    Let me know if it works out!


    Sorry Mike I have just seen the reply. Where would you add this to main template of my wordpress theme or as part of wp-tiles. If part of wp-tiles whuch file?



    Plugin Author Mike Martel


    Hi Russell,

    You add it to your functions.php. The snippet as above will simply set as the link for post with ID 12 when displayed on tiles. You’d have to make some modifications to make it more flexible, but it’s a start and shows how it’s done 🙂


Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Beta 1.0: Link to Webpage’ is closed to new replies.