WordPress.org

Ready to get started?Download WordPress

Forums

WP Photo Album Plus
Adding HTML markup into the photo Description (2 posts)

  1. karlx
    Member
    Posted 3 years ago #

    Greetings,
    I've fully installed the WPPA+ plugin into my site, and it functions great as is.
    I'm interested in making a tiny adjustment to it for some extended functionality.

    What I'm having difficulties with is adding HTML support into the photo 'description' area. I think I have narrowed in on the function where the changes should be made, but I don't know how to implement them:

    function wppa_slide_description($opt = '') {
    global $wppa;
    global $wppa_opt;

    if (($opt == 'optional') && !$wppa_opt['wppa_show_full_desc']) return;
    if ($wppa['is_slideonly'] == '1') return; /* Not when slideonly */
    $wppa['out'] .= '<p id="imagedesc-'.$wppa['master_occur'].'" class="wppa-fulldesc imagedesc" style="'.__wcs('wppa-fulldesc').'"></p>';

    }

    When I attempt to add HTML markups such as Header tags or Divs into the description area (via Admin panel), on the front-end the code does not display (just shows as <h1>Title</h1>, etc). If it could be adjusted so wppa_slide_description interprets exactly what is in the area as code, that would be wonderful!

    I do not have much PHP experience, so my trials and errors have not gotten me far.
    Any assistance would be appreciated.

    Thanks!

    http://wordpress.org/extend/plugins/wp-photo-album-plus/

  2. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 3 years ago #

    Did you check Allow HTML (table IX, item 4 on the Photo Albums -> Settings admin page?).
    This should enable HTML in album and photo descriptions.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic