Make page tab link to pdf

If you are talking about menus and your theme uses the Menu API, then upload the PDF to a publicly accessible server– doesn’t have to to be the one your site uses– then go to Appearance -> Menus, Navigate to a menu, or create one find the “Links” dialogue, input the URL and the link … Read more

List and show uploaded pdf files dynamically

Possibilities to fetch attachments WordPress saves files not only to a physical disk, but as well as attachment post type into your MySQL/MariaDB database. This means you have two possibilities to query for uploaded files and you have to chose what you need in which scenario/context. Filesystem only To loop through all files or a … Read more

Attaching a pdf to Contact Form 7 e-mail via functions.php [closed]

I’ve found what’s been missing in the code. You have to add this also: add_filter( ‘wpcf7_mail_components’, ‘mycustom_wpcf7_mail_components’ ); function mycustom_wpcf7_mail_components( $components ) { $components[‘attachments’][] = get_template_directory().’/pdf/test.pdf’; return $components; } Now everything is working fine and the file is attached to email without the need to add fields in the contact form.

Force PDF download from custom menu?

If you don’t mind all PDF attachments been forced to be downloaded then you can use something like this: <?php if (have_posts()) : while (have_posts()) : the_post(); $pdf_title = $post->post_title; $uploads_dir = wp_upload_dir(); $attachment_src = get_post_meta( $post->ID, ‘_wp_attached_file’, true ); $pdf_src = path_join( $uploads_dir[‘basedir’], $attachment_src ); header(“Pragma: public”); // required header(“Expires: 0”); header(“Cache-Control: must-revalidate, post-check=0, … Read more

how do i embed the pdf gallery in wordpress post

You can use the Custom URL field, to modify the attachment link for each one of your gallery images: where this is supported by the following plugin: <?php /** * Plugin Name: Custom Attachments Links * Description: Adds a new media field, to override the default attachment links. * Plugin URI: http://wordpress.stackexchange.com/a/176668/26350 * Plugin Author: … Read more

PDF Image in content

There’s no easy way in version 4.8, as far as I know. Few ideas come to mind, regarding writing plugins to make it easier: Use the media_send_to_editor filter to modify the HTML output for the application/pdf mime type, to include the preview image. This makes it is easier for user to insert pdf preview images, … Read more

Export a blog(not mine) as a PDF document

This kind of content scraping is frowned on. You’re trying to grab someone else’s content and put it into a transferable format over which they have no control. Yes, your intentions are sincere, but don’t be surprised if several people are hesitant to help. You do have some options, though. Contact the blog author This … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)