• Hello, this plugin is awesome but I need some help about this plugin. I need to add extra text format, so I can show other information to the facebook post.

    For an example, i got something to sale and i want to show the price.

    What I have done:

    1) Added %PRICE% to the core file.

    What is the problem:

    I am getting the value from the meta(database). Therefore, the post needs to save first (store all fields to meta). When I clicked the ‘Publish’, the autoArticle runs before the post is saved. So the meta for price is empty and posted to facebook. How can I fix this?

    My idea:

    1) Run autoArticle after post is saved.

    Suggestion for this plugin:

    1) Allow us to add custom text format, so we can decide which field from the post can be posted together.

    https://www.ads-software.com/plugins/social-networks-auto-poster-facebook-twitter-g/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author NextScripts

    (@nextscripts)

    You could’ve just check the documentation. ??

    You can add custom fields to the “Message format” since version 2.7.0

    https://www.nextscripts.com/snap-features/message-formatting-tags/

    %CF-CustomFieldName% – Inserts the contents of the custom field with the specified name. (example: if your price is stored in the custom field “PRDPRICE” you will need to use %CF-PRDPRICE% tag)

    Thread Starter Minchien

    (@minchien)

    Hi, I have a custom post type with a custom meta box. a custom field is inside the meta box. How do i get the name?

    Thread Starter Minchien

    (@minchien)

    I have a custom field name called as ‘key’ . Inside ‘key’, I have an array stored an array.

    Here are the codes:

    $meta_boxes = array(
    
    "price" => array(
    	  "name" => "price",
      	  "title" => $options['pricetext'],
    	  "description" => "Enter the price of the property (no commas or currency).",
    	  "type" => "range",
    	  "class" => "range",
    	  "rows" => "",
          "width" => "",
    	  "hide_in_search" => $options['pricehide'],
    	  "options" => ""
    		),
     // other type
    );

    When I want to show these fields in the post:

    $data = get_post_meta($post->ID, $key, true);  
    
          $output .= '<input type="text" name="' . $meta_box['name'] . '" value="' . (isset($data[$meta_box['name']]) ? $data[$meta_box['name']] : '') . '" style="margin-top:3px;width:' . $meta_box['width'] . ';" />';     
    
    echo $output;
    Thread Starter Minchien

    (@minchien)

    At the top:

    $key = "key";

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Delay autoArticle’ is closed to new replies.