WordPress.org

Support

Support » Plugins and Hacks » [Resolved] dynamic content gallery and poplarware language switcher

[Resolved] dynamic content gallery and poplarware language switcher

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

    Thanks

    Andy

Viewing 1 replies (of 1 total)
  • 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”;

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] dynamic content gallery and poplarware language switcher’ is closed to new replies.
Skip to toolbar