WP to Twitter
[resolved] Alternate #url# (3 posts)

  1. ajarcuri32
    Posted 3 years ago #


    I've searched and read this entire forum trying to figure out how to use a custom #url# but I still cant figure it out.

    In my posts I use the excerpt to hold a URL. When I use #url#, I want it to use the link in my excerpt, not the link to my post. How can I make it so that my tweets look like this:

    custom tweet text #url#

    where #url# shortens the link in my excerpt instead of my post id. I have tried using custom_fields but I still cannot figure it out.

    Thank you


  2. ajarcuri32
    Posted 3 years ago #

    I have gotten custom_field to work with #URL#, the only problem I have now is setting the custom_field's value to the excerpt. How can I do this?

  3. Joe Dolson
    Plugin Author

    Posted 3 years ago #

    Using the excerpt field to hold the URL makes that kind of complicated. If you use a custom template tag filter, you get the excerpt in a custom function, though.

    Here's an article I wrote outlining a similar case: http://www.joedolson.com/articles/2013/06/using-custom-template-tags-with-wp-to-twitter/

    The excerpt isn't a custom field, so it's not usable via either of the default methods for using a custom URL.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP to Twitter
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic