XHanch Studio Log in | Register | Cart

Forum

Notifications
Clear all

Tweets are not displaying when using shortcode or PHP code

8 Posts
2 Users
0 Reactions
9,778 Views
(@rebelino)
Posts: 4
New Member
Topic starter
 

Hello,

I upgraded Xhanch - My Twitter to version 2.7.4

Unfortunately I had some problems and I can no longer view the tweets

In the past I have always used Xhanch - My Twitter on the page,
using the code that was recommended and everything worked properly.

This time I utlizzato the new code:


[xmt profile = <profile name> before_widget = "" after_widget = "" before_title = "" after_title = ""]

I also tried this:


<? php
    $ args = array (
        'before_widget' =>'',
'after_widget' =>'',
'before_title' =>'',
'after_title' =>'',
    );
    xmt ($ args, '<profile name>');
?>

But it does not work in either case.

If you use the widget XMT Latest tweets everything works fine

Year you can help me understand?

My website is: www.giampaolofrongia.it

Thanks Giampaolo

 
Posted : 02/09/2012 10:11 pm
XHanch
(@xhanch-alt)
Posts: 2105
Member Admin
 

Have you changed the <profile name> to your actual profile name so the shortcode will be something like:

[xmt profile=Primary before_widget="" after_widget="" before_title="" after_title=""]
 
Posted : 03/09/2012 2:29 am
(@rebelino)
Posts: 4
New Member
Topic starter
 

Hi,

Absolutely, here's the code I used:

 <div id="sidebar-top">

                <div id="tweet-title">Gusto Sardegna via  Twitter</div>

                <div id="tweet-content">Gusto Sardegna on Twitter
<a href="" http://twitter.com/gustosardegna"> ;"
http//twitter.com/gustosardegna </a></div>

[xmt profile=<Primary> before_widget="" after_widget="" before_title="" after_title=""]

                <div id="tweet-footer">&nbsp;</div>

  </div >

The settings in the admin panel
all seem ok.

With the widget works, but with the code inserted into the page,
do not appear tweets.

Thank you, best regards.

 
Posted : 03/09/2012 4:33 am
XHanch
(@xhanch-alt)
Posts: 2105
Member Admin
 

Something wrong with your shortcode:

[xmt profile=<Primary> before_widget="" after_widget="" before_title="" after_title=""]

It should be:

[xmt profile=Primary before_widget="" after_widget="" before_title="" after_title=""]
 
Posted : 03/09/2012 1:32 pm
(@rebelino)
Posts: 4
New Member
Topic starter
 

Hi,
I used the right code but unfortunately still does not work.

Before upgrading, usavoquesto code and everything worked properly. :


                <?php if (function_exists('xmt')) {

                    $args = array(

                'before_widget' => '',

                'after_widget' => '',

                'before_title' => '',

                      'after_title' => '',

                    );

                    xmt($args, 'rpg');

                }



                else {

                    echo '<div id="xmt_rpg_wid" class="xmt xmt_rpg">&nbsp;</div>';

                }


                ?>

What can I do.?

I'm disappointed with this plugin because I was very good.

Greetings and thanks

 
Posted : 04/09/2012 3:51 am
XHanch
(@xhanch-alt)
Posts: 2105
Member Admin
 

I used the right code but unfortunately still does not work.
Before upgrading, usavoquesto code and everything worked properly.
What can I do.?

Are you sure?
I can see that you have no rpg profile, you only have Primary profile.

What if you place this PP codes:

<?php 
    if(function_exists('xmt')){       
        $args = array(
            'before_widget' => '',
            'after_widget' => '',
            'before_title' => '',
            'after_title' => '',
        );
        xmt($args, 'Primary');
        echo 'XMT HERE';
    }else{
        echo '<div id="xmt_rpg_wid" class="xmt xmt_rpg">NO XMT</div>';
    }
?>
 
Posted : 04/09/2012 8:57 pm
(@rebelino)
Posts: 4
New Member
Topic starter
 

Hi

In the previous version I used a profile that was called "RPG."

But in this version I'm using "primary".

I also tried to re-use this code but does not work anymore.

The only anomaly I've observed is that the
code:

[xmt profile = Primary before_widget = "" after_widget = "" before_title = "" after_title = ""]

Is not interpreted as code, but is displayed as text in the browser,
this s means you may miss a few lines of code to be integrated?

best regards gp

 
Posted : 05/09/2012 3:52 am
XHanch
(@xhanch-alt)
Posts: 2105
Member Admin
 

Where did you actually place this code?

[xmt profile=Primary]

In a text widget or page/post content?
It should be OK if you placed it in page/post content.
But, if you placed it in a text widget, you'll need to use thi splugin to enable shortcode on text widget
http://xhanch.com/wordpress-plugin-my-advanced-settings/

 
Posted : 05/09/2012 12:07 pm
Share:

× Close Menu