A
A
Alexander Lashchevsky2015-06-15 18:58:21
JavaScript
Alexander Lashchevsky, 2015-06-15 18:58:21

How to add posts through a site with custom fields without registering in WordPress?

Hello!
There is such a task: to add content through the site (not necessarily in the headings, you can anywhere - in any module) without registration and with the ability to fill in additional fields in addition to the content itself. It should also be possible to attach files to additional fields.
There is an Advanced Custom Fields plugin (we can buy a PRO version) that allows you to add any additional content to the news.
You can make it possible to add news through the site, there are also plugins for this, but they are not all friendly with Advanced Custom Fields ... Or I didn’t find it. Who faced it? How to solve the problem?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladimir Proskurin, 2018-09-05
@To4KaXD

Which block should appear? You are using hide and not show. And in HTML there is no block with ID robot. The event is executed, but because there is no such block, nothing happens.

S
Sergey Sokolov, 2018-09-05
@sergiks

At the time the code is executed, jQuery has not yet been loaded.

W
WP Panda, 2015-06-15
@wppanda5

add a button to the page, a button to call the modal window, insert a form with the fields you need into it, then everything is simple, send the form to the handler, do it in it

update_post_meta('ID записи','ключ поля' ,'значение поля' );

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question