| Title | Date | Action |
'post',
'posts_per_page' => 20,
'meta_key' => 'pdf_file', // Change to your PDF custom field name
'meta_compare' => 'EXISTS'
);
$posts = new WP_Query($args);
if ($posts->have_posts()) :
while ($posts->have_posts()) : $posts->the_post();
$pdf_url = get_post_meta(get_the_ID(), 'pdf_file', true); // Change to your field name
?> | |
View PDF ↗
No PDF
|
| No posts with PDFs found |