wpsmith / genesis-sandbox-featured-content-widget

Genesis Sandbox Featured Content Widget. Based on Nick Croft's Genesis Featured Widget Amplified for additional functionality which allows support for custom post types, taxonomies, and extends the flexibility of the widget via action hooks to allow the elements to be re-positioned or other elements to be added.
39 stars 21 forks source link

Custom field link outputting custom field name #33

Open pdmade opened 10 years ago

pdmade commented 10 years ago

Hi Mr. Smith,

Big fan of your work.

I was using your plugin as it allowed me to replace the permalinks with a custom link, using a custom field. I called my custom field a subsite-link

Recently we noticed some 404 errors from those custom links as the output had become http://www.siteurl.com/subsite-link

After looking through widget.php, it looks like line 397 is calling 'genesis_get_custom_field( 'gsfc_link_image_field' )' which in effect is looking for a custom field with the name gsfc_link_image_field, yes?

I renamed my custom field name from subsite-link to gsfc_link_image_field and am now getting the correct output.

Let me know if I can help troubleshoot or solve further. And thanks again for the great plugin. customfield gsfc_widget_screen

exelexys commented 9 years ago

Awesome hidden feature! It works for me too, but wondering, is there a way to reference things like category and subcategory as a variable or shortcode either in the widget or the custom field you mention?

It would make things a bit more general than hardcoding them.

Thanks!