• Hi
    I modified the standard template and I want to display a link to the files from the post. Can you advise me what I’m doing wrong?
    Thank you for your help.

    Milan

     <td style="text-align:center;"><div class="entry-meta">
      <pre>
        <?php  
         
            $parsed = parse_url( wp_get_attachment_url( $attachment->ID ) );
            $url = dirname( $parsed [ 'path' ] ) . '/' . rawurlencode( basename( $parsed[ 'path' ] ) );
            
        ?>
        </pre><pre>                    
     </div></td>
     

    The page I need help with: [log in to see the link]

  • The topic ‘How to view a link to files from a post.’ is closed to new replies.