[resolved] dynamic content gallery and poplarware language switcher (2 posts)

  1. andywelch
    Posted 6 years ago #

    Hi, I'm having problems with the post title not displaying translated in the dynamic content gallery's slide pane, but I can't seem to find any support on this issue. I'm using the poplarware language switcher plugin?

    Any ideas?



  2. andywelch
    Posted 6 years ago #

    Fixed it (it's in the documentation);

    I'm using the manual custom field and pages setting for the gallery.

    In the dcfg.gallery.constructors.php

    find and change as below:

    // Display the page title
    $output .= "\t" . '<h3>'. apply_filters('the_title', $page_found->post_title) .'</h3>' . "\n";

    // Get the description
    if( $dfcg_options['desc-method'] == 'manual' ) {

    // Do we have a dfcg-desc?
    if( get_post_meta($page_found->ID, "dfcg-desc", true) ) {
    $output .= "\t" . '<p>' . apply_filters('the_title',get_post_meta($page_found->ID, "dfcg-desc", true)) . '</p>' . "\n";

    } elseif( $dfcg_options['defimagedesc'] !== '' ) {
    // Show the default description
    $output .= "\t" . '<p>' . stripslashes( $dfcg_options['defimagedesc'] ) . '</p>' . "\n";

Topic Closed

This topic has been closed to new replies.

About this Topic