A
A
Artemy Zheman2017-09-01 15:28:13
css
Artemy Zheman, 2017-09-01 15:28:13

How to show posts that are under approval?

There is a form on the site that adds new posts by users to custom post types.
Entries that users add are sent for approval, but it is necessary that on the site, the user who added them and the admin can see these entries, in the general list, and the internal entry. Is it possible to do this in Wordpress?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Sergey delphinpro, 2019-05-13
@Vladimir141

As I said above - wrap the header in a row, give the header a width of 100%
There is still a row inside, it needs to be wrapped in col-12
https://codepen.io/anon/pen/NVRvmV?editors=1000
UPD
I forgot the bootstrap classes a little . This is how it will apparently be "more correct" (col class for header) https://codepen.io/anon/pen/xNEXqp?editors=1100

M
Mr Crabbz, 2017-09-01
@artyom_jeman

There is.
Use the hook https://wp-kama.ru/hook/pre_get_posts , add the status => array("publish", ""pending") parameter to wp_query . and authorship of posts (to show the author of his own post.)
There is no simple solution in the style of "open the settings, check the box or plug-in" - there are no such solutions.

V
Vladimir Druzhaev, 2017-09-02
@OtshelnikFm

When using the WP-Recall plugin (by the way, it has its own custom publishing form for custom post types), the following add-on is available: https://codeseller.ru/products/notify-panel-panel-... "Notify Panel - Notification Panel for the Wp-Recall plugin"
- with it, the admin can see the entries on the approval.
And the user himself in his personal account in the list of publications sees its status https://yadi.sk/i/H1GLU67M3MY74b
Or using the Universe Activity add-on - to the above plugin - you can see the status of the entry in your feed https://yadi.sk/i /Oi_PkZt13MY7C3

L
Loki9928, 2019-11-03
@Loki9928

$args = array(
'post_type' => 'post',
'post_status' => array("publish", "pending")
);
$query = new WP_Query( $args );

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question