  {"id":16642,"date":"2023-11-14T11:45:03","date_gmt":"2023-11-14T16:45:03","guid":{"rendered":"https:\/\/www.rochester.edu\/communications\/?page_id=16642"},"modified":"2026-07-13T10:14:42","modified_gmt":"2026-07-13T14:14:42","slug":"query-and-text","status":"publish","type":"page","link":"https:\/\/www.rochester.edu\/communications\/resources\/web-seo\/wordpress-theme\/query-and-text\/","title":{"rendered":"Query"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"","protected":false},"author":36,"featured_media":0,"parent":14392,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-templates\/one-column.php","meta":{"_acf_changed":false,"footnotes":"","_members_access_role":[],"_members_access_error":""},"class_list":["post-16642","page","type-page","status-publish","hentry"],"acf":{"lead_in":"Rochester Core","display_title":"Query component","subtitle":"Explore documentation around Rochester Core's Query component.","call_to_action":"","hero_image_placement":"no_image","hero_media":"images","hero_pattern_option":"","hero_video":"","hero_image_landing":"","hero_image_landing_two":"","hero_image_landing_three":"","content_modules_above":[{"acf_fc_layout":"text","anchor":"","css_class":"mt-0 pt-0","title":"<h2>Overview<\/h2>","content":"The Query component allows for creating dynamic feeds populated with posts based on the posts\u2019 categories and tags. For excellent use of this component, having a clear category and tag taxonomy in mind when organizing the content is essential. This component is fantastic for maintaining a blog or regularly posting updates to a website.\r\n\r\nRead the guide below for more information on using the query component. Please note that the instructions below are written for the new query component version, launched in April 2024. Administrators can still access the legacy query component if needed.\r\n\r\n<strong>Topics on this page:<\/strong>\r\n<ol>\r\n \t<li><a href=\"#video\">How-to video<\/a><\/li>\r\n \t<li><a href=\"#options\">Query options<\/a><\/li>\r\n \t<li><a href=\"#example\">Example query<\/a><\/li>\r\n<\/ol>","background_color":"#ffffff","width":"width-large"}],"sidebar":"show__sidebar","sidebar_feed":"menu_select","menu":"342","page_links":null,"sub_menu":"","content_modules":[{"acf_fc_layout":"text","anchor":"video","css_class":"","title":"<h2 style=\"text-align: center;\">1. How-to video: Query component<\/h2>","content":"<div style=\"padding: 56.25% 0 0 0; position: relative;\"><iframe style=\"position: absolute; top: 0; left: 0; width: 100%; height: 100%;\" title=\"16 - Query\" src=\"https:\/\/player.vimeo.com\/video\/1208501071?h=d955d174ec&amp;title=0&amp;byline=0&amp;portrait=0&amp;badge=0&amp;autopause=0&amp;player_id=0&amp;app_id=58479\" frameborder=\"0\"><span style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" data-mce-type=\"bookmark\" class=\"mce_SELRES_start\">\ufeff<\/span><\/iframe><\/div>\r\n<script src=\"https:\/\/player.vimeo.com\/api\/player.js\"><\/script>","background_color":"#f4f4f4","width":"width-medium"},{"acf_fc_layout":"accordion_new","anchor_id":"options","classes":"","title":"<h2><strong>2. Query options<\/strong><\/h2>","description":"After selecting the Query component on any page that uses the Rochester Core plugin, you'll be presented with the following options to customize the display and enter content.","background":"plain","background_color":"#ffffff","style":"row_blank","expand":"yes","accordions":[{"acf_fc_layout":"accordion","accordion_title":"Title","icon":"","row_content":"The title field is where to add the title or the heading for the query component.","accordion_anchor":""},{"acf_fc_layout":"accordion","accordion_title":"Content","icon":"","row_content":"The main text for the query component can be placed into the content field. This will display underneath the title and before the actual queries.","accordion_anchor":""},{"acf_fc_layout":"accordion","accordion_title":"Call to action","icon":"","row_content":"The call to action is useful for pointing to a blog page or a page where the user can see all the posts that have been made or acquire more information about the topics discussed.","accordion_anchor":""},{"acf_fc_layout":"accordion","accordion_title":"Background color","icon":"","row_content":"The color of the background can be selected in this section.","accordion_anchor":""},{"acf_fc_layout":"accordion","accordion_title":"Type of query","icon":"","row_content":"The \u201ctype of query\u201d option offers the choice whether to manually select the posts displayed or have them automatically chosen.","accordion_anchor":""},{"acf_fc_layout":"accordion","accordion_title":"Filters","icon":"","row_content":"The next few options allow the choice for what kind of posts will be displayed automatically in the component. Posts can be grouped using categories and tags. Once posts are labeled they can be selected here for display. If any additional posts are created and tagged with the same tag, they will be automatically populate the query component alongside the original posts.","accordion_anchor":""},{"acf_fc_layout":"accordion","accordion_title":"Choose the post to display style","icon":"","row_content":"This is the option to determine how the posts should be displayed.\r\n<ul>\r\n \t<li><strong>Cards:<\/strong>\u00a0breaks the posts up into cards that look very similar to the card component.<\/li>\r\n \t<li><strong>Scroll:<\/strong>\u00a0sets up the posts in a line that can be scrolled through to see more posts.<\/li>\r\n \t<li><strong>List:<\/strong>\u00a0displays the posts one after the other in a vertical list which provides a simple but clear option for displaying the posts.<\/li>\r\n<\/ul>","accordion_anchor":""},{"acf_fc_layout":"accordion","accordion_title":"Number of columns","icon":"","row_content":"If the cards display option is selected the \u201cnumber of columns\u201d will appear. This determines how many columns to use when dividing up the posts.","accordion_anchor":""},{"acf_fc_layout":"accordion","accordion_title":"Limit","icon":"","row_content":"The limit is a gauge for how many posts will be displayed in the query component. Increase the limit number to display more posts.","accordion_anchor":""},{"acf_fc_layout":"accordion","accordion_title":"Post build","icon":"","row_content":"The post-build section determines what information from the post will be displayed for the query component. Choosing information is as simple as checking each box with the desired info to be displayed.","accordion_anchor":""},{"acf_fc_layout":"accordion","accordion_title":"Heading type","icon":"","row_content":"This option allows a heading type to be assigned to the post\u2019s titles. This option is not attached to the visuals of the title but instead helps establish proper page hierarchy.","accordion_anchor":""},{"acf_fc_layout":"accordion","accordion_title":"Content length","icon":"","row_content":"The content length determines how much text from the post will be displayed as a preview.\r\n<ul>\r\n \t<li><strong>Full content:<\/strong>\u00a0displays the entire content of the post in the text field.<\/li>\r\n \t<li><strong>Yoast excerpt:<\/strong>\u00a0takes the Yoast excerpt data from the Yoast area and displays it in the query.<\/li>\r\n \t<li><strong>Short excerpt:<\/strong>\u00a0takes a short excerpt from the post to display.<\/li>\r\n<\/ul>","accordion_anchor":""},{"acf_fc_layout":"accordion","accordion_title":"Featured post","icon":"","row_content":"To display a post in a prominent position, the featured post options will allow certain posts to be called out. Simply select between \u201cyes\u201d and \u201cno\u201d for this and choose a featured post to be drawn out from the rest.","accordion_anchor":""},{"acf_fc_layout":"accordion","accordion_title":"Type of featured post","icon":"","row_content":"This option allows the featured post to be either be chosen specifically with \u201cfeatured post selection\u201d or automatically with \u201cmost recent post.\u201d Choosing \u201cfeatured post selection\u201d brings up a box that shows all the posts on the site. From here, the featured post can be chosen for display.","accordion_anchor":""}]},{"acf_fc_layout":"query_new","anchor":"example","css_classes":"","title":"<h2 style=\"text-align: center;\">3. Query example<\/h2>","content":"This is an example of a Query component with a featured post for big visual impact. This Query example has the column count set to three and the card limit set to four.","cta":"","background_color":"#F4F4F4","query_type":"query_type_auto","filter_one":"382","filter_two":"","post_selection":"","post_display_style":"cards","columns":3,"limit":"4","post_meta_data":["date","category"],"heading_type":"h2","content_source":"","featured_post":"featured_post","featured_post_type":"recent_post","featured_select":""},{"acf_fc_layout":"query_new","anchor":"","css_classes":"","title":"<h2>Query example<\/h2>","content":"This is an example of a Query component with the scroll display style and a navy background. The query posts are displayed in a line that can be scrolled through to see more posts.","cta":{"title":"Learn more","url":"#","target":""},"background_color":"#00205B","query_type":"query_type_auto","filter_one":"382","filter_two":"","post_selection":"","post_display_style":"scroll","columns":3,"limit":"4","post_meta_data":["image","show_content"],"heading_type":"h2","content_source":"excerpt","featured_post":"","featured_post_type":"","featured_select":""},{"acf_fc_layout":"query_new","anchor":"","css_classes":"","title":"<h2>Query example<\/h2>","content":"Below is an example of the list display style for the Query component. This option is great for blogs, announcements, or simply displaying a large number of posts on a page.","cta":"","background_color":"#FFFFFF","query_type":"query_type_auto","filter_one":"382","filter_two":"","post_selection":"","post_display_style":"list","columns":3,"limit":"4","post_meta_data":["date","category"],"heading_type":"h2","content_source":"","featured_post":"","featured_post_type":"","featured_select":""},{"acf_fc_layout":"card_grid","anchor":"","css_class":"","title":"","description":"","background_color":"#f4f4f4","width":"width-medium","columns":"1","cards":[{"card_title":"<p class=\"u-card-title\">Rochester Core component documentation<\/p>","card_text":"Explore the other components available on the Rochester Core WordPress theme.","card_background_color":"#FFFFFF","card_hover_color":"#283faf","card_link":{"title":"Logging in","url":"https:\/\/www.rochester.edu\/communications\/resources\/web-seo\/training\/","target":""},"card_hover_arrow":"hover_arrow","card_image":"","card_image_size":"","card_image_placement":"","card_image_hover_state":"hover_fade","card_image_link":""}]}]},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Query - University Marketing and Communications<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rochester.edu\/communications\/resources\/web-seo\/wordpress-theme\/query-and-text\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Query - University Marketing and Communications\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rochester.edu\/communications\/resources\/web-seo\/wordpress-theme\/query-and-text\/\" \/>\n<meta property=\"og:site_name\" content=\"University Marketing and Communications\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-13T14:14:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rochester.edu\/communications\/wp-content\/uploads\/2025\/10\/URochester-Link-Preview-Marcom-ImageRight.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rochester.edu\\\/communications\\\/resources\\\/web-seo\\\/wordpress-theme\\\/query-and-text\\\/\",\"url\":\"https:\\\/\\\/www.rochester.edu\\\/communications\\\/resources\\\/web-seo\\\/wordpress-theme\\\/query-and-text\\\/\",\"name\":\"Query - University Marketing and Communications\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rochester.edu\\\/communications\\\/#website\"},\"datePublished\":\"2023-11-14T16:45:03+00:00\",\"dateModified\":\"2026-07-13T14:14:42+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rochester.edu\\\/communications\\\/resources\\\/web-seo\\\/wordpress-theme\\\/query-and-text\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rochester.edu\\\/communications\\\/resources\\\/web-seo\\\/wordpress-theme\\\/query-and-text\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rochester.edu\\\/communications\\\/resources\\\/web-seo\\\/wordpress-theme\\\/query-and-text\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rochester.edu\\\/communications\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Resources\",\"item\":\"https:\\\/\\\/www.rochester.edu\\\/communications\\\/resources\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Digital resources\",\"item\":\"https:\\\/\\\/www.rochester.edu\\\/communications\\\/resources\\\/web-seo\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Rochester Core resources\",\"item\":\"https:\\\/\\\/www.rochester.edu\\\/communications\\\/resources\\\/web-seo\\\/wordpress-theme\\\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Query\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rochester.edu\\\/communications\\\/#website\",\"url\":\"https:\\\/\\\/www.rochester.edu\\\/communications\\\/\",\"name\":\"University Marketing and Communications\",\"description\":\"ÌÇÐÄ´«Ã½\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rochester.edu\\\/communications\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rochester.edu\\\/communications\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rochester.edu\\\/communications\\\/#organization\",\"name\":\"University Marketing and Communications\",\"url\":\"https:\\\/\\\/www.rochester.edu\\\/communications\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rochester.edu\\\/communications\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rochester.edu\\\/communications\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/university-communications.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rochester.edu\\\/communications\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/university-communications.jpg\",\"width\":1200,\"height\":630,\"caption\":\"University Marketing and Communications\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rochester.edu\\\/communications\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Query - University Marketing and Communications","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rochester.edu\/communications\/resources\/web-seo\/wordpress-theme\/query-and-text\/","og_locale":"en_US","og_type":"article","og_title":"Query - University Marketing and Communications","og_url":"https:\/\/www.rochester.edu\/communications\/resources\/web-seo\/wordpress-theme\/query-and-text\/","og_site_name":"University Marketing and Communications","article_modified_time":"2026-07-13T14:14:42+00:00","og_image":[{"url":"https:\/\/www.rochester.edu\/communications\/wp-content\/uploads\/2025\/10\/URochester-Link-Preview-Marcom-ImageRight.png","width":1200,"height":630,"type":"image\/png"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.rochester.edu\/communications\/resources\/web-seo\/wordpress-theme\/query-and-text\/","url":"https:\/\/www.rochester.edu\/communications\/resources\/web-seo\/wordpress-theme\/query-and-text\/","name":"Query - University Marketing and Communications","isPartOf":{"@id":"https:\/\/www.rochester.edu\/communications\/#website"},"datePublished":"2023-11-14T16:45:03+00:00","dateModified":"2026-07-13T14:14:42+00:00","breadcrumb":{"@id":"https:\/\/www.rochester.edu\/communications\/resources\/web-seo\/wordpress-theme\/query-and-text\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rochester.edu\/communications\/resources\/web-seo\/wordpress-theme\/query-and-text\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.rochester.edu\/communications\/resources\/web-seo\/wordpress-theme\/query-and-text\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rochester.edu\/communications\/"},{"@type":"ListItem","position":2,"name":"Resources","item":"https:\/\/www.rochester.edu\/communications\/resources\/"},{"@type":"ListItem","position":3,"name":"Digital resources","item":"https:\/\/www.rochester.edu\/communications\/resources\/web-seo\/"},{"@type":"ListItem","position":4,"name":"Rochester Core resources","item":"https:\/\/www.rochester.edu\/communications\/resources\/web-seo\/wordpress-theme\/"},{"@type":"ListItem","position":5,"name":"Query"}]},{"@type":"WebSite","@id":"https:\/\/www.rochester.edu\/communications\/#website","url":"https:\/\/www.rochester.edu\/communications\/","name":"University Marketing and Communications","description":"ÌÇÐÄ´«Ã½","publisher":{"@id":"https:\/\/www.rochester.edu\/communications\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rochester.edu\/communications\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rochester.edu\/communications\/#organization","name":"University Marketing and Communications","url":"https:\/\/www.rochester.edu\/communications\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rochester.edu\/communications\/#\/schema\/logo\/image\/","url":"https:\/\/www.rochester.edu\/communications\/wp-content\/uploads\/2023\/03\/university-communications.jpg","contentUrl":"https:\/\/www.rochester.edu\/communications\/wp-content\/uploads\/2023\/03\/university-communications.jpg","width":1200,"height":630,"caption":"University Marketing and Communications"},"image":{"@id":"https:\/\/www.rochester.edu\/communications\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.rochester.edu\/communications\/wp-json\/wp\/v2\/pages\/16642","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rochester.edu\/communications\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.rochester.edu\/communications\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.rochester.edu\/communications\/wp-json\/wp\/v2\/users\/36"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rochester.edu\/communications\/wp-json\/wp\/v2\/comments?post=16642"}],"version-history":[{"count":16,"href":"https:\/\/www.rochester.edu\/communications\/wp-json\/wp\/v2\/pages\/16642\/revisions"}],"predecessor-version":[{"id":34922,"href":"https:\/\/www.rochester.edu\/communications\/wp-json\/wp\/v2\/pages\/16642\/revisions\/34922"}],"up":[{"embeddable":true,"href":"https:\/\/www.rochester.edu\/communications\/wp-json\/wp\/v2\/pages\/14392"}],"wp:attachment":[{"href":"https:\/\/www.rochester.edu\/communications\/wp-json\/wp\/v2\/media?parent=16642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}