Forums

[resolved] [Plugin: Exhibit to WP Gallery] Exhibit description to WP Gallery Title field (4 posts)

  1. Michiel
    Member
    Posted 11 months ago #

    Hi, is it possible to move the Exhibit description field to the WP Gallery title field? This way the old Exhibit descriptions get nicely shown in e.g. lightbox. I have been checking your code but not quite sure what I need to swap to make this happen:-)

  2. Michiel
    Member
    Posted 11 months ago #

    Is it on line 224, changing
    'post_title' => $title,

    to:
    'post_title' => $content,

    ?

    And if I want the WP Gallery content field to be empty could I remove line 225?
    'post_content' => $content,

    Just want to be sure before trying it out:-)

  3. Michiel
    Member
    Posted 11 months ago #

    Found it!

    Line 132

    From:
    $postdata = array('post_excerpt' => $p->caption, 'menu_order' => $p->picorder);

    To:
    $postdata = array('post_title' => $p->caption, 'menu_order' => $p->picorder);

    Slowly getting to know PHP;) Now trying to figure out how to get the image post_title displayed under an image on single pages.

  4. mir123
    Member
    Posted 7 months ago #

    Fantastic, Michiel! Thanks a lot!

Reply

You must log in to post.

About this Topic