• Resolved Lichttraeumer

    (@lichttraeumer)


    Hi,

    very nice plugin ! ??

    My “problem” :

    – logged in customers with specific roles can publish their own pages.
    – this pages have to be approved for revision from an admin

    With [content type=”page” id=”3133″] i want so implement this page in some toggle content.
    But the [content] shortcode displays the page content also without approval, because the page content is “pulled” with get … ().
    Is there a possibility, to add a parameter in the [content] shortcode, that only approved content will be shown ?

    Br,

    Martin

    https://www.ads-software.com/plugins/custom-content-shortcode/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Eliot Akira

    (@miyarakira)

    Hello,

    I updated the plugin (version 0.6.4) to only display posts with published (or approved) status. Also added a parameter called status for both [loop] and [content] shortcodes, where you can filter posts by: any, publish, pending, draft, future, private, or combination (status=”publish, pending”).

    In your case, I think you can just update the plugin and there’s no need to use the parameter, because user posts that are pending approval should be filtered out by default.

    Please let me know if that works for you.

    Thread Starter Lichttraeumer

    (@lichttraeumer)

    Good Morning,

    quick support, but unfortunately the default filtering doesn’t work for me.
    Here is the participant content from the Database:

    (ID, post_author, post_date, post_date_gmt, post_content, post_title, post_excerpt, post_status, comment_status, ping_status, post_password, post_name, to_ping, pinged, post_modified, post_modified_gmt, post_content_filtered, post_parent, guid, menu_order, post_type, post_mime_type, comment_count) VALUES
    (3133, 3, ‘2014-02-01 08:51:33’, ‘0000-00-00 00:00:00’, ‘[av_textblock ]\r\ndeleted\r\n[/av_textblock]’, ‘deleted’, ”, ‘pending’, ‘open’, ‘open’, ”, ”, ”, ”, ‘2014-02-01 08:51:33’, ‘2014-02-01 06:51:33’, ”, 0, ‘deleted’, 0, ‘page’, ”, 0);

    Br,

    Martin

    Plugin Author Eliot Akira

    (@miyarakira)

    When you say the filtering didn’t work, do you mean that the user’s post (waiting for approval) is still displayed by the content shortcode? Hmm, from what you included above, it looks like the post is in “pending” status, which should be filtered out.

    I’ve tested the status parameter, and it seems to be working as it should. Could you try with status=”publish” to see if that filters out the pending post?

    Also, are you using WordPress’ native function to approve posts, or is some other plugin managing this? That could make a difference.

    Thread Starter Lichttraeumer

    (@lichttraeumer)

    Good morning,

    the seams so work not correct …

    I added the following code (via avia visual editor) in the tab part of the the specific customer page:

    [content type=”page” id=”3133″ status=”publish”]

    But the page (id 3133) content is displayed on the referred specific customer page.

    For puiblishing, i use the normal WP way … no plugin.

    Br,

    Martin

    Plugin Author Eliot Akira

    (@miyarakira)

    OK, thank you for the information – I’ll test it and see what is not working. I’ll let you know when I find the solution.

    Plugin Author Eliot Akira

    (@miyarakira)

    Hello,

    I believe I’ve solved the issue with the content of pending posts being displayed. Please see the updated plugin, version 0.6.5.

    Thread Starter Lichttraeumer

    (@lichttraeumer)

    Hi Eliot,

    i did a first quick test … now it seems to be fine.
    I have do double check it today in the evening (german time).

    You’ll get feedback … ??

    Ty and br,

    Martin

    Thread Starter Lichttraeumer

    (@lichttraeumer)

    Hi Eliot,

    double checked.
    Works for me, thx !

    Great Job ??

    Martin

    Plugin Author Eliot Akira

    (@miyarakira)

    Perfect, thank you for letting me know about the issue. It helped me to improve the plugin.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Content only for approved pages ?’ is closed to new replies.