Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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.nl

    Thanks

    Thread Starter Rensss

    (@rensss)

    Agreed. But couldn’t see where to edit my post and was to fast :/…
    But I got it working already so. +5

    [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 🙂

    Apologize 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.

    http://www.site.energizedesigns.nl

    I got the error : /pricetable/mytitle = Not found

Viewing 5 replies - 1 through 5 (of 5 total)