{"id":98,"date":"2026-03-06T08:18:27","date_gmt":"2026-03-06T08:18:27","guid":{"rendered":"https:\/\/gigz.pk\/sql\/?post_type=lesson&#038;p=98"},"modified":"2026-03-16T18:53:19","modified_gmt":"2026-03-16T18:53:19","slug":"creating-views","status":"publish","type":"lesson","link":"https:\/\/gigz.pk\/sql\/lesson\/creating-views\/","title":{"rendered":"\u00a0Creating Views"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">A <strong>view<\/strong> is a way to display data from your website in a structured and user-friendly format. Views allow users to see content in different layouts without changing the underlying data.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Common examples of views include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A list of blog posts<\/li>\n\n\n\n<li>A gallery of images<\/li>\n\n\n\n<li>A table of products<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">2. Steps to Create a View<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Access the Views Section<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Log in to your website\u2019s admin panel.<\/li>\n\n\n\n<li>Navigate to the <strong>Views<\/strong> or <strong>Display Settings<\/strong> section.<\/li>\n\n\n\n<li>Click <strong>Add New View<\/strong> or <strong>Create View<\/strong>.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Define View Name and Description<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Give your view a <strong>descriptive name<\/strong> (e.g., \u201cLatest Blog Posts\u201d).<\/li>\n\n\n\n<li>Optionally, write a <strong>short description<\/strong> for internal reference.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Select the Content Type<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Choose the type of content you want the view to display. Examples:\n<ul class=\"wp-block-list\">\n<li>Blog posts<\/li>\n\n\n\n<li>Products<\/li>\n\n\n\n<li>Pages<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Selecting the correct content type ensures that your view shows the right data.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Choose the View Format<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>List:<\/strong> Shows items one after another vertically.<\/li>\n\n\n\n<li><strong>Grid:<\/strong> Displays items in rows and columns.<\/li>\n\n\n\n<li><strong>Table:<\/strong> Useful for structured data like reports.<\/li>\n\n\n\n<li><strong>Slideshow or Carousel:<\/strong> For images or featured content.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step 5: Apply Filters<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Filters allow you to <strong>limit the content<\/strong> shown.<\/li>\n\n\n\n<li>Examples:\n<ul class=\"wp-block-list\">\n<li>Show only published posts<\/li>\n\n\n\n<li>Display items from a specific category<\/li>\n\n\n\n<li>Show only content created in the last 30 days<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step 6: Sort Content<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Decide how the items should appear:\n<ul class=\"wp-block-list\">\n<li>By newest first<\/li>\n\n\n\n<li>By title alphabetically<\/li>\n\n\n\n<li>By popularity<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step 7: Configure Fields<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Fields define <strong>what information appears<\/strong> for each item.<\/li>\n\n\n\n<li>Examples:\n<ul class=\"wp-block-list\">\n<li>Title<\/li>\n\n\n\n<li>Author<\/li>\n\n\n\n<li>Date<\/li>\n\n\n\n<li>Image<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Choose only the fields needed to avoid clutter.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step 8: Save and Preview<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click <strong>Save<\/strong> to create the view.<\/li>\n\n\n\n<li>Use <strong>Preview<\/strong> to see how it looks on your website.<\/li>\n\n\n\n<li>Make adjustments if necessary.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">3. Best Practices<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use clear and descriptive <strong>names<\/strong> for views.<\/li>\n\n\n\n<li>Only display the <strong>most relevant fields<\/strong> to users.<\/li>\n\n\n\n<li>Use filters and sorting to improve <strong>user experience<\/strong>.<\/li>\n\n\n\n<li>Test views on <strong>different devices<\/strong> to ensure responsiveness.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">4. Summary<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Creating views is a simple way to organize and display content dynamically. By following these steps, you can make your website content easy to access and visually appealing.<\/p>\n\n\n<div class=\"yoast-breadcrumbs\"><span><span><a href=\"https:\/\/gigz.pk\/sql\/\">Home<\/a><\/span> \u00bb <span class=\"breadcrumb_last\" aria-current=\"page\">Intermediate SQL for Data Professionals (SQL-201) > Views &#038; Stored Procedures > Creating Views<\/span><\/span><\/div>\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1773578261956\"><strong class=\"schema-faq-question\"><\/strong> <p class=\"schema-faq-answer\"><\/p> <\/div> <\/div>\n","protected":false},"menu_order":45,"template":"","class_list":["post-98","lesson","type-lesson","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u00a0Creating Views - SQL Learning Hub<\/title>\n<meta name=\"description\" content=\"&quot;Learn how to create dynamic website views to display content like blog posts, products, and galleries effectively.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/gigz.pk\/sql\/lesson\/creating-views\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u00a0Creating Views - SQL Learning Hub\" \/>\n<meta property=\"og:description\" content=\"&quot;Learn how to create dynamic website views to display content like blog posts, products, and galleries effectively.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gigz.pk\/sql\/lesson\/creating-views\/\" \/>\n<meta property=\"og:site_name\" content=\"SQL Learning Hub\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-16T18:53:19+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\\\/\\\/gigz.pk\\\/sql\\\/lesson\\\/creating-views\\\/\",\"url\":\"https:\\\/\\\/gigz.pk\\\/sql\\\/lesson\\\/creating-views\\\/\",\"name\":\"\u00a0Creating Views - SQL Learning Hub\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/sql\\\/#website\"},\"datePublished\":\"2026-03-06T08:18:27+00:00\",\"dateModified\":\"2026-03-16T18:53:19+00:00\",\"description\":\"\\\"Learn how to create dynamic website views to display content like blog posts, products, and galleries effectively.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/sql\\\/lesson\\\/creating-views\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/gigz.pk\\\/sql\\\/lesson\\\/creating-views\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/sql\\\/lesson\\\/creating-views\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gigz.pk\\\/sql\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Intermediate SQL for Data Professionals (SQL-201) > Views & Stored Procedures > Creating Views\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/sql\\\/#website\",\"url\":\"https:\\\/\\\/gigz.pk\\\/sql\\\/\",\"name\":\"SQL Learning Hub\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/gigz.pk\\\/sql\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u00a0Creating Views - SQL Learning Hub","description":"\"Learn how to create dynamic website views to display content like blog posts, products, and galleries effectively.","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:\/\/gigz.pk\/sql\/lesson\/creating-views\/","og_locale":"en_US","og_type":"article","og_title":"\u00a0Creating Views - SQL Learning Hub","og_description":"\"Learn how to create dynamic website views to display content like blog posts, products, and galleries effectively.","og_url":"https:\/\/gigz.pk\/sql\/lesson\/creating-views\/","og_site_name":"SQL Learning Hub","article_modified_time":"2026-03-16T18:53:19+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["WebPage","FAQPage"],"@id":"https:\/\/gigz.pk\/sql\/lesson\/creating-views\/","url":"https:\/\/gigz.pk\/sql\/lesson\/creating-views\/","name":"\u00a0Creating Views - SQL Learning Hub","isPartOf":{"@id":"https:\/\/gigz.pk\/sql\/#website"},"datePublished":"2026-03-06T08:18:27+00:00","dateModified":"2026-03-16T18:53:19+00:00","description":"\"Learn how to create dynamic website views to display content like blog posts, products, and galleries effectively.","breadcrumb":{"@id":"https:\/\/gigz.pk\/sql\/lesson\/creating-views\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gigz.pk\/sql\/lesson\/creating-views\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/gigz.pk\/sql\/lesson\/creating-views\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gigz.pk\/sql\/"},{"@type":"ListItem","position":2,"name":"Intermediate SQL for Data Professionals (SQL-201) > Views & Stored Procedures > Creating Views"}]},{"@type":"WebSite","@id":"https:\/\/gigz.pk\/sql\/#website","url":"https:\/\/gigz.pk\/sql\/","name":"SQL Learning Hub","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/gigz.pk\/sql\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/gigz.pk\/sql\/wp-json\/wp\/v2\/lesson\/98","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gigz.pk\/sql\/wp-json\/wp\/v2\/lesson"}],"about":[{"href":"https:\/\/gigz.pk\/sql\/wp-json\/wp\/v2\/types\/lesson"}],"wp:attachment":[{"href":"https:\/\/gigz.pk\/sql\/wp-json\/wp\/v2\/media?parent=98"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}