Ask questions about WordPress courses

Creating Your Own WordPress Metabox. Attaching a PDF file to an article.

Create your own metabox WordPress, we fix PDF file by article. It is very convenient to use additional fields when developing a plugin. “metabox“.

To get started, you need to download WordPress PDF file. After downloading, open the function.php file and paste the code there:

Next, go to the section for creating a new article and scroll to the bottom of the page. In the metabox that appears, in the drop down list, select the downloaded file.

You can get the address like this:

An example of using an uploaded file:

Code checked, everything works perfectly. Good luck with development.


Купить хостинг WordPress
WordPress tutor
Online tutoring services. List of courses I teach
  • Basic web design course;
  • Site layout;
  • General course on CMS WordPress and continuation of the course on template development;
  • Website development in PHP.
Read more on the page WordPress tutor
*/

Nikolaenko Maxim

Director of web studies ProGrafika. I am developing, website design and promotion. Always glad to new blog readers and good clients.


You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Templates for WordPress
The best hosting in Ukraine
Stable hosting for Drupal