Pinoss
Forum Replies Created
-
Forum: Plugins
In reply to: [WP CSV] Import edited CSV fileWell I decide to run a test with one post (I created for this purpose).
Now, I updated the plugin to latest version and when I export CSV file, some fields (columns that with previous version are generated) now are missing. Why?
How to solve it?
Thanks in advance.
Forum: Plugins
In reply to: [Plugin: WPML Multilingual CMS] Remember Browser Language Cookie Not WorkingHi,
I solved the problem so I’ll explain what I’ve done for if anyone needs.Go to plugins/sitepress-multilingual-cms/res/js/jquery.cookie.js
From line 34 you ca see that:
var days= options.expires, t = options.expires = new Date(); t.setDate(t.getDate() + days);Change to this :
var t = options.expires, t = options.expires = new Date(); var minutes = 60; t.setTime(t.getTime() + (minutes * 60 * 1000));Where :
var minutes = 60are the minutes you want until cookie expiration.Regards.
Forum: Plugins
In reply to: [Easing Slider] Fade effect bug in FirefoxForum: Fixing WordPress
In reply to: Highlight Current Category that was rewritedYeah, it works!
Thanks for all csloisel!
Forum: Hacks
In reply to: Insert a Post in Wp_post MYSQLIf you would like to insert existing tags by ID, change this line:
'tags_input' => array('tag1,tag2'),for this one:
'tags_input' => array(5,6),Regards
Forum: Hacks
In reply to: Insert a Post in Wp_post MYSQLHi,
Thanks for reply.
I have been testing some code and finally I have one that for the moment, works. This code not duplicate posts/pages and add metas into the database too.I created a folder in my server (named test) outside of WordPress folders. Inside this folder I created a PHP file (Test.php) and included core functions in WordPress (wp-load.php).
I’m using All in One SEO pack , for this reason I wrote some stipulated words in meta variables (like _aioseop_title, _aioseop_description and _aioseop_keywords).
Here the code:
<?php require_once("../wp-load.php"); global $user_ID; $new_post = array( 'post_title' => 'test_post', 'post_content' => '[shortcode]', 'post_status' => 'publish', 'post_date' => date('Y-m-d H:i:s'), 'post_author' => $user_ID, 'post_type' => 'post', 'tags_input' => array('tag1,tag2'), 'post_category' => array(3) ); $post_id = wp_insert_post($new_post); $meta_key="_aioseop_title"; $new_meta_value="title_here"; add_post_meta( $post_id, $meta_key, $new_meta_value, true ); $meta_key="_aioseop_description"; $new_meta_value="description_here"; add_post_meta( $post_id, $meta_key, $new_meta_value, true ); $meta_key="_aioseop_keywords"; $new_meta_value="keywords_here"; add_post_meta( $post_id, $meta_key, $new_meta_value, true ); ?>Thanks to you bcworkz and Regards to all.
Yes, installing MBstring the plugin now works well.
Thanks.Hi,
Thanks for response.
Yes I saw in the status page a warning refering to Mbstring extension. I will install it on my server and I will try again.
Thanks for all.
Regards.