WordPress.org

Forums

TSP Featured Posts
Adding a custom field to the display (17 posts)

  1. justplaindoug
    Member
    Posted 8 months ago #

    I am hoping that there is a way I can add a custom field to a post and then use that in the display upfront. Is that possible?

    https://wordpress.org/plugins/tsp-featured-posts/

  2. The Software People
    Member
    Plugin Author

    Posted 8 months ago #

    Hey Doug, would you provide us with more details please. Also, in the future please submit any bugs and enhancements to http://lab.thesoftwarepeople.com/tracker/wordpress-fp. Thank you

  3. justplaindoug
    Member
    Posted 8 months ago #

    Basically, I want to add the custom field (tickets) which is a url, and then display that as a link under the post title.

  4. justplaindoug
    Member
    Posted 8 months ago #

    ANything?

  5. justplaindoug
    Member
    Posted 8 months ago #

    BTW I opened a ticket on a second issue as well. Am I going to get anywhere with this?

  6. The Software People
    Member
    Plugin Author

    Posted 8 months ago #

    Thank you for posting to our support page, please check for the responses and for all communication concerning this issue.

  7. The Software People
    Member
    Plugin Author

    Posted 8 months ago #

    Just realized you didn't post the first question to the support area. Any updates and customizations can be done in the TSP_Easy_Dev.extend.php file in the main directory, you will only need to modify the display_widget function. If you wish to have custom updates let us know.

  8. justplaindoug
    Member
    Posted 8 months ago #

    okay. But what if I use the shortcode and not the widget?

    I've created new templates and can't choose those in the widget.

  9. The Software People
    Member
    Plugin Author

    Posted 8 months ago #

    Can't chose "those"? What are "those"? I still don't quite understand. Would you send screen shots as to what you are attempting to do? Actually the display_widget function eventually gets called when using shortcode.

  10. justplaindoug
    Member
    Posted 8 months ago #

    I typed, "I've created new templates and can't choose those in the widget."

    What isn't clear about that? I'm obviously talking about the new templates I created.

    And alright, I guess I will try and figure it out. Any headway on figuring out why it's cropping and using a thumbnail version of a photo when the rest of the instances work fine?

  11. The Software People
    Member
    Plugin Author

    Posted 8 months ago #

    Sir I apologize if my response frustrated you but I sincerely don't understand what else you need and I still don't understand what your problem is.

    I'll respond to what I assume you mean instead...

    All the code that is responsible for displaying the widgets or shortcode are in the display_widget function which I stated early. To go further, the code to pull images from a WordPress posts is as follows

    $media = $pro_post->get_post_media ( $a_post, $thumb_width, $thumb_height );

    get_post_media is a WP Codex function and it just simply sets the image size based on the thumbnail width and height.

    And in your clarification to me? I still don't know what you mean...

    "I've created new templates and can't choose [templates] in the widget."

    There isn't a way to choose templates in our widgets so I still don't know what this means, my apologies. Hopefully I answered the question for you.

  12. The Software People
    Member
    Plugin Author

    Posted 8 months ago #

    Correction to the above...

    "get_post_media is a WP Codex function and it just simply sets the image size based on the thumbnail width and height."

    should read

    "get_post_media is a function that subsequently calls get_the_post_thumbnail WP Codex function and it just simply sets the image size based on the thumbnail width and height."

    And I think this may be the issue it searches for a featured image and when it doesn't find one it checks the post for any images...perhaps the ending syntax is the issue?

    Hold while I research this...

  13. justplaindoug
    Member
    Posted 8 months ago #

    I'm using the exact same shortcode for the two instances in question, that I am for the other three instances. However, in the two in the middle- it is choosing a thumbnail. Which is not what I selected when I hit the featured image.

    Look here http://www.mothafalcon.com/stanfords/

  14. The Software People
    Member
    Plugin Author

    Posted 8 months ago #

    See thats what I don't understand because the images there all look fine to me...

  15. The Software People
    Member
    Plugin Author

    Posted 8 months ago #

    I see "Continue Reading" that looks to be in a weird position?....

  16. justplaindoug
    Member
    Posted 8 months ago #

    No...the "Book an event" and "Open Mic" the code it is calling is

    <img height="140" width="295" align="left" alt="Book an Event" src="http://www.mothafalcon.com/stanfords/wp-content/uploads/2014/08/statcollage-150x150.jpg">

    But if you take out the -150x150 and just leave it at statcollage.jpg then it shows the proper image and all.

    As it stands it uses that thumbnail and ignores the height and width that is noted.

  17. The Software People
    Member
    Plugin Author

    Posted 8 months ago #

    Can you pass into the shortcode or the widget 150 as width and height that way its sized properly. ?

Reply

You must log in to post.

About this Plugin

  • TSP Featured Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.