schwa97
Forum Replies Created
-
Hi Alex,
Thanks for your help!
I’ve added the code to a page through the WP editor, in Text mode. I’ve hit publish and when I visit my website (http://camsoda.be/) you see [wbcr_php_snippet id=”45″] instead of the actual PHP snippet.
It’s the only active plugin at the moment and I’m running the lastest version of WP.
Best regards,
Rutger
<h3>Klik gelijk op één van deze populaire webcam girls</h3> [wbcr_php_snippet id="45"] <h3>Wat is Camsoda?</h3> Camsoda is een gratis online webcam community. Je vindt hier geweldige amateurmodellen die live optreden in interactieve shows. Camsoda is 100% gratis en je hebt direct toegang. <h3>Is Camsoda gratis?</h3> Ja, Camsoda is 100% gratis. Je kunt alle webcam modellen zonder kosten bekijken en om gebruik te maken van de site heb je geen creditcard nodig. Natuurlijk kan je modellen wel fooien geven als je ze goed vindt. <h3>Hoe maak ik een account aan?</h3> Klik <span style="color: #e529e2;"><strong><a style="color: #e529e2;" href="http://www.camsoda.be/camsoda">hier</a></strong> </span>om een gratis account aan te maken. Je moet je gegevens invullen en de stappen volgen. Hiermee kun je met andere leden chatten en je kunt je eigen Cam show houden.My bad. The snippet is already without the opening and closing PHP tags. It’s just: “echo “test”;”
Forum: Networking WordPress
In reply to: Different content on different sitesI found this tutorial:
http://www.catswhocode.com/blog/how-to-make-a-translatable-wordpress-themeI think I can use it for my problem. Create a .po and .mo file for every site and load a language pack depending on the URL using:
<? if (HOME_URL == 'http://domainA.com') { load_theme_textdomain( 'domainA', TEMPLATEPATH.'/languages' ); $language_pack = "domainA"; } ?>And then use statments like:
<?php _e("This text should be translated", $language_pack); ?>Would this work?