• Resolved dr01

    (@dr01)


    Hi,

    First, kudos for this great plugin, and apologies if this has been asked before.
    We use Polylang to maintain an English and French version of our WP site https://www.clevernetsystems.com . When a visitor does a search, each result item in the list is structured in this way:

    [page title]
    [date] / in English pll_#####
    [page content]

    where ##### is a string of 13 hex digits.

    When the visitor clicks on a pll_##### link, he gets a page that contains on the top some code such as
    a:2:{s:2:”fr”;i:3052;s:2:”en”;i:3049;}
    followed by the page in both languages.

    Is there a way to mask the pll_##### links or the code from the visitor’s view? They’re not exactly nice to see.

    Thanks in advance,

    DR

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Chouby

    (@chouby)

    Hi!

    Your theme displays non public taxonomies. Please ask your theme support how to hide “non public” taxonomies.

    Thread Starter dr01

    (@dr01)

    Thanks. We asked the maker of our theme and we’ll post here an answer as soon as we get it so that other WP users can benefit.

    Thread Starter dr01

    (@dr01)

    Hello,

    No answer at all from our theme vendor, but I found a solution anyway. You have to edit the file wp-content/themes/your_theme/functions.php and add at the end:

    add_filter('avf_exclude_taxonomies', 'avia_exclude_tax', 10, 3);
    function avia_exclude_tax($tax,$post_type,$id){
    $tax[] = 'post_translations';
    return $tax;
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘pll_##### links as result of search’ is closed to new replies.