• Resolved generalsebert

    (@generalsebert)


    Hello,
    Thanks for this great plugin. Is it possible to define the attached documents target to _blank and how?

Viewing 5 replies - 1 through 5 (of 5 total)
  • What plugin are you talking about. ?
    Name the plugin and show some sample code, also define your problem clearly so that someone could assist.

    Thread Starter generalsebert

    (@generalsebert)

    Found !

    /**
    	 * Callback shortcode
    	 */
    	function shortcode($atts, $content = null){
    		global $wp_query;
            //if(!empty($wp_query->post->ID)):
    			extract(shortcode_atts(array(
    					    'type' => 'application',
    					    'count' => -1,
    					    'orderby' => 'date',
    					    'order' => 'DESC',
    					    'show' => 'title',
    					    <strong>'target' => 'blank',</strong>
    					    'link_to' => 'file',
    						'parent_id' => $wp_query->post->ID,
    			), $atts));

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been damaged by the forum’s parser.]

    This is still incomplete information.

    Thread Starter generalsebert

    (@generalsebert)

    Oops sorry, the plugin is “List related attachments”

    The plugin forum is the right place to post this question.

    https://ww.wp.xz.cn/support/plugin/list-related-attachments-widget

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Target’ is closed to new replies.