Need help adding link to PDF in search and archive
-
In the template I am using, there is a link to pdf at the end of each entry on the single post page. It seems to be accomplished with the following code:
`<div class=”entrytext”>
<?php the_content(‘<p class=”serif”>Read the rest of this entry »</p>’); ?>
<?php link_pages(‘<p>Pages: ‘, ‘</p>’, ‘number’); ?>’
When I try to carry over the relevant piece from the above code, it only works if I bring over the entire entry as well as the link to PDF.
See here:
https://blog.williamatwellclary.com/?p=134
At the end of the entry I get the link to a PDF.But here in search results:
https://blog.williamatwellclary.com/?s=pieAnd here in the category listing:
https://blog.williamatwellclary.com/?cat=18I can’t get the link to PDF to appear under the entry title, like this:
White Chocolate Pecan Truffles
Download PDF: White Chocolate Pecan Truffles.pdfChocolate Truffles
Download PDF: Chocolate Truffles.pdfAnother issue: there seems to be a limit on the # of items returned in a search or a category archive on a given page. I want to make that unlimited. Help?
Thanks,
m
- The topic ‘Need help adding link to PDF in search and archive’ is closed to new replies.