Skip Navigation

[Resolved] Display the type of file or a link to the file in View

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Tagged: 

This topic contains 15 replies, has 2 voices.

Last updated by olegB-2 5 years, 12 months ago.

Assigned support staff: Beda.

Author
Posts
#335733

I would like to inform you that I have successfully solved the problem. I found this code:

function my_attach( $atts ){
    global $post;
    return $post->guid;
}
add_shortcode( 'myattach', 'my_attach' );

Thank you for your participation!

The forum ‘Types Community Support’ is closed to new topics and replies.