Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Charl Beetge

    (@beetgemedia)

    Hi Paul, again thank you for the help.

    Stupid question, what and where do I place the code to set up the shortcode which you sent? In the child theme function file or as a code module on the template page?

    Just to confirm this code is in the PODS settings as Template –

    <ul>
      [each attached_files]
    	<li><a href="{@attached_files._src}" target="_blank" rel="noopener">{@title}</a></li>
      [/each]
    </ul>

    I created a template in my theme to show each custom post type, this is the shortcode I use in the module where it should show the attached files –
    [pods name=”pigeon” use_current=”1″ template=”Attached Files” ]

    This is a URL (https://fly.bmtest.co.za/pigeons/za-svpv-1110-16/) to one of the posts, which you will see on the right of the page at the bottom is a heading saying “PEDIGREE & OTHER DOCUMENTS”, there is a list of the files attached to this post. In this post, there should be 3 files for this particular bird, 1x pdf and 2x jpg’s. The list is showing but the first URL opens the same post in a new tab and does not link to the file, the second and 3 links open the same file.

    Thank you

    Charl

    Thread Starter Charl Beetge

    (@beetgemedia)

    Hi Paul

    Thank you kindly for the help ??

    I have 2 uploaded files per post, one jpg and another pdf, in no particular order. After updating the code to what you suggested, I now see 2 links per post which is great; but the first link is a loop back to the same post in a new tab, the second link is correct and opens the jpg/pdf in a new tab.

    What do you suggest I change and what could be the cause of the first listed link not linking to the jpg/pdf?

    Kind regards

    Charl

    Hi David

    I have a similar problem. Message saying backup was successful but with errors – error “Warning: /home/beetgeme/public_html/wp-content/uploads/index.php: unreadable file – could not be backed up (check the file permissions)”

    Must I change the permissions of the file or just delete the file in question which is what I think James did?

    Regards

    Charl

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