C
C
CasDi2018-05-20 18:51:05
WordPress
CasDi, 2018-05-20 18:51:05

How to make file search in wordpress for download?

How to make file search in wordpress for download?
example: www.ngkonkurs.ru/itogi/44-itogi-xiv-konkursa-aprel... - search by application code.
*.rar format file

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan Hasanli, 2018-05-20
@azerphoenix

Hello!
First, you need to resolve the issue of how exactly the application, along with the file, will be stored in the database. I suggest creating a custom post type + custom fields (request number and file itself).
Then you need to write a small php code that will get information from the database using Ajax and display the order number and a link to download the rar archive (or any other) in the search results.
For custom fields, use Advanced Custom Fields For
custom post type, study - https://wp-kama.ru/function/register_post_type explore creating a search - https://premium.wpmudev.org/blog/how-to-use-ajax-i...
or you can use the plugin - https://codecanyon.net/item/ajax-search-pro-for-wo...
(you can set up search by custom post type and custom field)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question