Title: Calling notes field in shortcode
Last modified: November 5, 2024

---

# Calling notes field in shortcode

 *  Resolved [jfinkle](https://wordpress.org/support/users/jfinkle/)
 * (@jfinkle)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/calling-notes-field-in-shortcode/)
 * The two branches of the library will have different hours for a few holidays 
   starting next year, and I’m trying to figure out how to call up the notes field
   from individual exceptions in the short code of our theme’s header for today’s
   hours. That way, after Xam-Ypm, I can add “Branch A; Branch B Closed” from the
   notes so both branch’s hours are reflected. The note field already comes up after
   special hours in the weekly hours table in the footer.
 * Our current shortcode in the header is:
 * `{!! do_shortcode('[open_text]%if_open_today% Today’s hours: %hours_today% %end%%
   if_special_today% %space% Both Branches %end% %if_closed_today% Closed today.%
   end%[/open_text]') !!}`
 * … but with the differing branch hours, I need to be able to call the exception
   note field text for each holiday in place of “Both Branches”, as it will vary.
 * I tried finding it on the instruction page, but it’s not covered in the references
   here: [https://demo.designextreme.com/were-open/](https://demo.designextreme.com/were-open/)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcalling-notes-field-in-shortcode%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Noah Hearle](https://wordpress.org/support/users/designextreme/)
 * (@designextreme)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/calling-notes-field-in-shortcode/#post-18116462)
 * [@jfinkle](https://wordpress.org/support/users/jfinkle/) This plugin only supports
   one set of opening hours. So if you’re looking for something beyond one set, 
   then this plugin will not offer the functionality you need.
 * I hope to create a premium version that supports multiple locations, but I can’t
   offer a timeline for this.
 *  Thread Starter [jfinkle](https://wordpress.org/support/users/jfinkle/)
 * (@jfinkle)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/calling-notes-field-in-shortcode/#post-18116548)
 * [@designextreme](https://wordpress.org/support/users/designextreme/) Is there
   no way to call the notes field from a holiday/exception to display within a shortcode?
   That’s all I need to get this to work. I can already get it to read “10am-3pm
   Clark House; Malta Closed” on a holiday in the weekly table using the notes.
   
   I tried %note%, %notes%, and a couple other things, but none worked.
 * Unfortunately I can’t easily change to another plugin as this one was built into
   the accessible theme that my library’s system commissioned a couple years ago,
   and I have to resort to creative workarounds.
 *  Plugin Author [Noah Hearle](https://wordpress.org/support/users/designextreme/)
 * (@designextreme)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/calling-notes-field-in-shortcode/#post-18116554)
 * [@jfinkle](https://wordpress.org/support/users/jfinkle/) Sorry, perhaps I misunderstood
   your question.
 * If you’re only looking for one set of opening hours, then you can add a note 
   to Special opening hours with additional text. It will always appear as the same
   wherever a note appears.
 * I haven’t considered _only _showing a note for a given date or date range (by
   excluding everything else), so I’ll look into this for you, but I doubt that 
   it is possible with the plugin as it is.
 *  Plugin Author [Noah Hearle](https://wordpress.org/support/users/designextreme/)
 * (@designextreme)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/calling-notes-field-in-shortcode/#post-18141610)
 * [@jfinkle](https://wordpress.org/support/users/jfinkle/) At the moment, there
   is nothing available to call a note for a specific day. However, this would be
   a useful addition to the logic and variables, so I will look into adding this
   in a future release.
 * Thanks again for the feature request and sorry for the misunderstanding in the
   first response.
 *  Plugin Author [Noah Hearle](https://wordpress.org/support/users/designextreme/)
 * (@designextreme)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/calling-notes-field-in-shortcode/#post-18156328)
 * [@jfinkle](https://wordpress.org/support/users/jfinkle/) I have added this functionality
   to the upcoming release of the _We’re Open!_ plugin. Thank you for the inspiration!
 * You will see this as one of the 4 new logic checks and 2 new variables – this
   covers only today and tomorrow – similar to much of the other logic and replacement
   text.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Calling notes field in shortcode’ is closed to new replies.

 * ![](https://ps.w.org/opening-hours/assets/icon.svg?rev=2706372)
 * [We’re Open!](https://wordpress.org/plugins/opening-hours/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/opening-hours/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/opening-hours/)
 * [Active Topics](https://wordpress.org/support/plugin/opening-hours/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/opening-hours/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/opening-hours/reviews/)

## Tags

 * [exceptions](https://wordpress.org/support/topic-tag/exceptions/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 5 replies
 * 2 participants
 * Last reply from: [Noah Hearle](https://wordpress.org/support/users/designextreme/)
 * Last activity: [1 year, 6 months ago](https://wordpress.org/support/topic/calling-notes-field-in-shortcode/#post-18156328)
 * Status: resolved