Rensss
Forum Replies Created
-
Forum: Plugins
In reply to: [Polylang] Get language in index.php –> what code to use?Hey!
This topic might be dead, but I am currently experiencing some flaws here.
I am trying to create the code as following (explained newbie style)
if curlang = 1 { do_shortcode ([myshortcode1]) } ifelse curlang = 2 { do_shortcode ([myshortcode2]) }Im not an expert in PHP, so I can’t create my own code.
I’ve used code above, resulting in a blank page.I’m using insert pages plugin to implement pages into the main-page (since my customers can then edit the page them self).
Code:
<?php $curlang = pll_current_language(); if ($curlang=='nl') { do_shortcode( "[insert page='welkom' display='content']" ); } elseif ($curlang=='de') { do_shortcode( "[insert page='wilkommen' display='content']" ); } else { //If language is different then NL or DE do_shortcode("[insert page='welkom' display='content']"); } ?>Can you help/explain why its not working for me?
Page is wp.energizedesigns.nlThanks
Forum: Reviews
In reply to: [Shortcode Widget] Doesnt workAgreed. But couldn’t see where to edit my post and was to fast :/…
But I got it working already so. +5Forum: Plugins
In reply to: [Hashtag] Why this plugin is created[edit]
Nevermind.. I fixed it with tags.
Solution:
<div class=”divclass”>
<?php $posttags = get_the_tags();
if ($posttags) {
foreach($posttags as $tag) {
echo ‘<a href=”‘;echo bloginfo(url);
echo ‘/?s=’ . $tag->slug . ‘”>’ . $tag->name . ”;
}
}
?>
</div>Only thing to do is .divclass a:before { content=”#” }
Then you can add tags as hashtags 🙂
Forum: Plugins
In reply to: [Hashtag] Why this plugin is createdApologize for maybe the wrong topic, but I can’t find where to start a new about this plugin.
I tried to use it in the_excerpt() and in the truncate_post() AND in the_content().
Neither one works (doesn’t convert into a ?s=’thehashtag’).
Can you help me? Thanks.Forum: Plugins
In reply to: [Price Table] 2 Bad: Doesn't work error messageI got the error : /pricetable/mytitle = Not found