Quantcast
Viewing all articles
Browse latest Browse all 11471

Chouby on "[Plugin: Polylang] Problems with custom post types introduced by a theme"

Iw onder why it works for me and not for you. Did you test with only Swatch, Polylang and this auto-translate plugin activated?

Otherwise you should obtain the same result by modifying the file swatch/includes/home-pagecontent.php at line 16 and replace

<?php query_posts( 'page_id=' . intval( $woo_options['woo_main_page'] ) ); ?>

by

<?php $id = intval( $woo_options['woo_main_page'] );
if (function_exists('pll_get_post'))
  $id = pll_get_post($id);
query_posts( 'page_id=' . $id ); ?>

Of course it is best to make a child theme


Viewing all articles
Browse latest Browse all 11471

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>