Home Forums Backend Issues (wp-admin) Access $post values in wp-admin


Access $post values in wp-admin

    • Bobz

    • January 29, 2014 at 3:43 am


    Is there a way to get post title and show it inside edit page in wp-admin?

    I have created custom post type for carousel.
    User can add image + text + link (repeater field).

    Now I’m developing a shortcode, so user can use shortcode to display this carousel somewhere.
    What I was thinking is to create ‘Message field’ that would have shortcode generated so he can copy it.
    For example, shortcode would look like: [slider_shortcode “post-title”]

    What I need here is to get current post title.
    Is this possible?

    Thanks in advanced


    • James

    • January 29, 2014 at 6:36 am

    Hi @bobz,

    The WP best practice is to add an action to the area of the page you wish to display your information.

    ‘admin_head’ might be what your looking for =>

    Here is a list of all the WP actions =>

    • Bobz

    • January 29, 2014 at 8:51 am

    Oki thanks, I will think of something.


Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.