Forum Replies Created

Viewing 8 replies - 16 through 23 (of 23 total)
  • Thread Starter Pinoss

    (@pinoss)

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

    Thread Starter Pinoss

    (@pinoss)

    Hi,
    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 = 60 are the minutes you want until cookie expiration.

    Regards.

    Thread Starter Pinoss

    (@pinoss)

    Hi @matthewruddy,

    Solved.

    Thanks for your reply.

    Regards.

    Thread Starter Pinoss

    (@pinoss)

    Yeah, it works!

    Thanks for all csloisel!

    Thread Starter Pinoss

    (@pinoss)

    If 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

    Thread Starter Pinoss

    (@pinoss)

    Hi,
    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.

    Thread Starter Pinoss

    (@pinoss)

    Yes, installing MBstring the plugin now works well.
    Thanks.

    Thread Starter Pinoss

    (@pinoss)

    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.

Viewing 8 replies - 16 through 23 (of 23 total)