Forums

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

  1. Michiel
    Member
    Posted 3 years 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 3 years 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 3 years 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 2 years ago #

    Fantastic, Michiel! Thanks a lot!

Topic Closed

This topic has been closed to new replies.

About this Topic