linger668
Forum Replies Created
-
Yes, indeed, thanks so much!
Forum: Plugins
In reply to: [Contact Form 7] How can I save the data to my specified databaseActurally, what I want is get the data from the input, I tried this, but still doesn’t work, can you help me to see where is my mistake?
add_action('wpcf7_before_send_mail', 'my_conversion'); function my_conversion($form) { global $wpdb; $submission = WPCF7_Submission::get_instance(); if ( $submission ) { $posted_data = $submission->get_posted_data(); } $email = $posted_data["email-promo"]; $query = 'SELECT pro_mail from newsletter where pro_mail=' . trim($email) ; $record = $wpdb->get_results($query); if (count($record) < 1) { $wpdb->insert( 'newsletter', array('pro_mail' => $email), array('%s'));} }Forum: Reviews
In reply to: [Simple Pagination] Very simple to useMy problem is that it doesn’t show the other page links
Forum: Reviews
In reply to: [Simple Pagination] Very simple to useHello, can you help me check my code? Is there some problems?
$paged = get_query_var('paged') ? get_query_var('paged') : 1; $query_arguments = array( 'post_type' => $atts['_type'], 'post_status' => 'publish', 'orderby' => 'title', 'order' => 'ASC', 'ignore_sticky_posts'=> 1, 'showposts' => $atts['postsPerPage'], 'paged' => $paged, 'meta_key' => 'initial_letter', 'meta_value' => $letters, ); $trombinoscope_query = new WP_Query($query_arguments); $initials_letter = '0'; // Display Category Posts $html = '<div class="trombinoscope_whole">'; $index = 1; $current_page = 1; if ($trombinoscope_query->have_posts()) : while ($trombinoscope_query->have_posts()) : $trombinoscope_query->the_post(); $post_title = get_the_title(); if ($post_title) { $current_letter = $post_title[0]; } if ($current_letter != $initials_letter) : $html .= '<div class="trombinoscope_list"> <p>'.$current_letter.'</p> </div>'; endif; $initials_letter = $current_letter; $html .= generate_post_html(); endwhile; if(function_exists('wp_simple_pagination')) { $html .= wp_simple_pagination(); }Forum: Plugins
In reply to: [Fetch Tweets] About the databese restoreI reinstall it, and using the lastest version; there are no this problems. But I can’t find the template ID anymore. It’s changed by url. And I can’t use it.
Forum: Plugins
In reply to: [Fetch Tweets] About the databese restoreAnd there is another line,
Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method PHPPC::register_admin_menu() should not be called statically in /wp-includes/plugin.php on line 505Forum: Plugins
In reply to: [Fetch Tweets] Fetch Tweets: Not authorized.It doesn’t exist the code number, only “Fetch Tweets: Not authorized”.
Only one twitter profile shows that.
Forum: Plugins
In reply to: [Fetch Tweets] Will it collapse when I search a lot of twitter?How to set the cache? I didn’t set rule, I just use it like what you said to me:
fetchTweets( array( ‘screen_name’ => $tag->name, ‘template’ => ‘a5f856deb3b275db7a23656bc01b2556’));
Like this.
Forum: Plugins
In reply to: [Fetch Tweets] Fetch Tweets: Not authorized.Most of the Twitters’ profiles show, only one line is written this message.
I checked the setting, yes. Like you said.
Forum: Plugins
In reply to: [Fetch Tweets] how to show tweets by tweet idThanks, it works now
Forum: Plugins
In reply to: [Fetch Tweets] how to show tweets by tweet idThanks for your reply, I mean “Tweet Text,” and “tweet media”.
Actually I tried to use twiiter api, andI can’t get tweet media when media have videos.And for fetch_tweets by tweet id, it doesn’t work for videos. I have already set the good values.
Forum: Plugins
In reply to: [Fetch Tweets] how to show tweets by tweet idYes, it works, thank you. But how to display the tweets title, and tweets media?
Forum: Plugins
In reply to: [Custom Post Type UI] How to display the custom values TaxonomiesI didn’t add the post type. How can I check the url?
And do you know how can I get all the values of the taxonomy I created?
e.g. get_the_tags().Forum: Plugins
In reply to: [Fetch Tweets] About the tags partOK, Just like this, I have 500 screenname, I want to show their profile on my blog, Can you give me a good idea?
Forum: Plugins
In reply to: [Fetch Tweets] About the tags partActually, the results which I want to get , is I have a list from posts tags(the screennames of twitters), I want to show it in the sidebar, but I don’t want to add the rules one by one screenname; do you have an easy way , like use add rules by list, but I don’t know how to use this option. Can you help me to figure out?