Feature Request

Forums SNAP – WordPress Plugin Forums Feature Request

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #24249
    Cihangir
    Participant

      Most of wordpress users / developers are using custom fields in their posts to adjust things. It can be nice if we have ability to choose the custom field to use as “description” to post social networks.

      #24256
      NextScripts.com
      Participant

        Message Formatting Tags

        See the %CF-CustomFieldName% tag

        #24261
        Cihangir
        Participant

          I solved my requirement as follows.. i edited the nextscipts_snap.php and added the following conditional lines into nsFormatMessage function.

          It is working properly but the problem is i have to update the code each time i updated the script.
          I hope there will be a feature for custom fields soon.


          if (preg_match('%MYMSG%', $msg)) {
          $recipe = get_post_meta($postID, 'mycustomfield', true);
          if ($recipe!="") $excerpt = $recipe; else $excerpt= "";
          $excerpt = nsTrnc(strip_tags(strip_shortcodes($excerpt)), 300, " ", "..."); $msg = str_ireplace("%MYMSG%", $excerpt, $msg);
          }

          #24262
          Cihangir
          Participant

            Ahh sorry didnt see your message 🙂

            I was focused and my window was open.. great feature.. every cent worths for SNAP

          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.