Support » Plugin: WP Photo Album Plus » [Plugin: WP Photo Album Plus] Adding HTML markup into the photo Description

  • 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.


Viewing 1 replies (of 1 total)
  • Plugin Author Jacob N. Breetvelt


    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.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP Photo Album Plus] Adding HTML markup into the photo Description’ is closed to new replies.