1. If your theme doesn’t already have a child theme, there are two ways that you can create a child theme for any WordPress theme:. 3. In the query loop settings I have chosen “inherit query from template”. You can not use a query loop block. For best results, we suggest using the Query Loop block in GenerateBlocks. 4 or later. Leon. I have 4 elements for Archive Pages: Site Header, Page Hero, Site Footer, and Loop Template. Because i need a fallback image, i did not choose a GB-image for the featured image, but a GB-Container with background image. 0. I believe I am right till here. Generally you would a PHP Template for the displaying that post type – see here for example on setting up a single templates:The Query Loop Block. 2. That is exactly how I would do it in GP 3. Add a Container for the hero, inside add 2 column grid. Add the GB query loop block, you can create whatever layout you want for the archive. Create your beautiful 404 page by going to Appearance -> Elements and setting up a new block element. I created the block loop element and assigned it to the archives for the custom post type. So you do not want to put a Query Loop inside it, as you have just added it inside the theme loop. If you use page builders, GeneratePress is the right theme for you. muted – This will mute any sound the video might have. But there is no such template in the parent theme Generatepress. Installing GeneratePress. So yes, GeneratePress is totally worth it. I suspect the hooks will simply insert the html as the page is. 1. php The Infinite Scroll feature doesn’t work with the Loop Template as it’s not made to work with a Query Loop. NOTE: that you set your my-class-name and that needs to be added to the Query Loop -> Grid Block –> Advanced > Additional CSS Classe And update the get_field value for your ACF Field. With that you design just the post template which gets hooked into the themes loop. How do I load this in my test. Hi Jaypabs, You can set the columns of the Query Loop through the Container Width of the Post Template Block as such:. If you love building with Gutenberg, GeneratePress is one of the best WordPress theme builders for you to use. GeneratePress. You can make project pages, create GeneratePress block element to showcase projects in a Query loop displaying clickable featured images. If you use. Tweak: Add message in Blog section about Loop. I guess I will have to use the Templates to create the page. The testing block: block element type – hook, hook name: before_footer. 240 10K views 10 months ago Mastering GeneratePress & GenerateBlocks: A Comprehensive Tutorial Series GeneratePress theme customization takes a step forward with the. When you use get_the_ID () in a GenerateBlocks or WordPress Query Loop, the returned ID will always be the ID of the current page/post viewed, not the one in the current loop. I want to use the same content block template to display user favorites but can’t figure out a way to create this new loop using Generatepress and GenerateBlacks. php settings. Donor – Betty with headline and navigation links (and default site elements) 3. 0, you can create a Content Template in the Block Element module. Pagination within a post. GeneratePress 2. Within my blog posts, I like to display posts for further reading here and there in a visually appealing way. Now, for the Shortcode, add a GB Headline Block as a placeholder. All Topics; Log In; Register; Search for: Loop Template no. Go to Appearance > GeneratePress > Site Library. Share your videos with friends, family, and the worldGeneratePress Premium 2. This topic has 3 replies, 2 voices, and was last updated 4 years ago by Tom. 1 The content should include a GB Query Loop Block that you can set to Inherit Query from Template or set the Params manually to match your term. set its Dynamic Data to List of Terms, set the Taxonomy -> Category. The documentation says “The Loop Template block element allows you to build your own archive loops using the block editor. the product search results are influenced by the loop template. Hi, I have created a post archive using the new ‘loop template’ element. autoplay – This will make the video start playing as soon as the page loads. You can create a Loop Template by creating a new block element, then select Loop Template under the. I need to add paging navigation at the end of category query loop, in the “category archive” element. Installing GeneratePress. php and the content-single. My question: How can I display the ACF fields (text, name, function) of the associated testimonial in the Case Study Content Template?. Add a Container for the hero, inside add 2 column grid. Select demos like Info or Newsroom that comes with magazine/news style layout. 8 will include patterns for displaying different layouts We’ll be looking at whether its a good move to develop GPP Block Element templates to sit within that or to extent GPP / WP Show Posts / GB Pro to perform its own magic 🙂I have managed to go prety far with the query loop, as I have all the styling options of generatepress, but there are some things I cannot find, plus I will have to create static pages for all categories (53 categories so far). Can you please tell me how I can call upon a content-page with a different name?Fernando Customer Support. Is there an easy way to use custom css to stick the bottom container (date + author) to the bottom of the template? Creds provided below. Very powerful Element, I love it, but it’s not helping me achieve what I want to do. As the content template block element is a GP Premium feature, I’m not going to talk about it more. That’s not normal behavior, but without seeing the backend and doing more tests, it’s hard to tell what the cause is. Hey, I am using query loop for related posts via elements. Pricing Explore Next Level Control. Add my-class-name to the Post Template Block as such:. A Loop Template would override the default template. Feature: Add revisions to block elements. It integrates the GenerateBlocks plugin with your GeneratePress theme and allows you to build a tailored and unique layout and hook that layout into your site. Browse the collection of Loop templates to find one that fits your needs best. This way, the WP_Query instance you’re going to use on the template will be a dynamic loop based on the parsed URL of the current static page. The Element – Portfolio Archive is assigned to a static page called Poforlio, well, as the element is set to loop template, the location. I’m also curious to know if it’s possible to have a query loop with three or four columns. Query Loop Overview. Viewing 6 posts - 1 through 6 (of 6 total)Installing GeneratePress. When I tried to use my own index. Customer Support. 2 set the Apply to -> First Post. How do I display query loop horizontally? I’d like to display it with image above and the tile below like the screenshot below:. And now with WordPress 6. 2. I have created a Block element of Loop type containig a GenerateBlocks Query Loop and I would like to be able to use this element and achieve the same result on any archive page, i. e. Hope this clarifies! Author. For the 3rd query loop block, set the offset parameter to 2. Hello, How can I make my posts category page look like this meaning the layout with sections and also the posts themselves two or three to a row. I understand that the Customizer > Blog > Columns is mandatory of what I configure in the Query Loop blocks as it appears on the element div with grid-33, tablet-grid-50 and mobile-grid-100:. 2. 2. Beyond GeneratePress, De Hofmeester uses Elementor to power most of the other designs, with the top slider using Smart Slider 3, rather than Elementor’s slider. April 12, 2023 at 5:21 pm #2607923. This should fix your structure. On a side note, can I also check, so I used GenerateBlocks free version in the past, and the link editting was really easy because for each link, there were three options below, nofollow, open in new tab, and sponsored, but now, I need to click on the edit icon >. 2. When you first add a Query Loop block to the page, you will see the following parameters: These parameters are there by default and will result in the latest 10 posts being displayed. Then, click on the “+” icon to add a new block. 2. Select the Element Type -> Loop Template 3. in your Query Loop, start with an empty template, and add your Reusable block inside it. 3. Archive Content Template. At the highest level, there’s more to this than GeneratePress and GenerateBlocks as GeneratePress has a free and Premium version, and GenerateBlocks has a free and Pro version. – Start From Scratch grid. GeneratePress offers two payment options: $59 for one year of support/updates. I see that you are trying to usepost meta excerpt to output the excerpt, I checked the ACF, the field name is actually project_excerpt not excerpt, so try replace it with project_excerpt in your query loop setting. com Joined April 2014. gb-block-image:has(. Seemed easy enough. Editor will be hidden. Connect and share knowledge within a single location that is structured and easy to search. g. Learn more about bidirectional Unicode characters. Edit the Element Content Template, in the sidebar with the Element tab selected, check the Keep default post container this will give you the separated containers. GenerateBlocks is a block for Gutenberg editor developed by Tom Usborne, the famous developer behind GeneratePress Theme. Text Domain: hello-elementor-child. In the Home tab, I have used Queryloop but for some reason the title appeared on the top of the image. The WordPress support article says “You can think of it as a more complex and powerful Latest Posts Block. If you want to add a Query Loop Block to the archive/blog pages, add it through a different Block Element type(not Content Template) to avoid this issue. Fernando Customer Support. Advanced Design Options Change colors and typography on your site with one click. Taxonomy -> Category -> A Term. Add a new Query Loop Block that’s set it to “Inherit query from template”. php and editing that. 2. php; 404. 2. 5. 4), prepend the folder name and a slash to the template filename, e. If I use the Cloudinary Media Inspector, it shows:… helpIf the page template is located in a subdirectory of the theme (since WP 3. Now the content thats outside of the loop such as the search form, that would need to be added using a separate Block Element Hook and hooked in before the main content. a separate Element Loop Template for the Search archives, as you may need to add other content before the loop on this page. Go to Appearance > GeneratePress. Viewing 4 posts - 1 through 4 (of 4 total) Author. You can renew for a 40% discount after your first year. 3. For a quick answer – The GeneratePress theme is good. Any help is appreciated! Thank you. php and home. GeneratePress is a multi-purpose WordPress theme that’s minimalistic, low-code, and easy to customize. 1 first loop will be to show one posts and should have a class of list-one 3. The content template which displays the actual posts in the loop, is displayed using this function: generate_do_template_part( 'archive' ); This calls the relevant content. Edit the content of the blocks in the pattern (text and media changes mainly) 4. Editor opened ok – added some stuff and saved etc. Then, you can replace generate_do_template_part( 'archive' ); with:Im designing a post loop and post template using generateblocks and generatepress. Select Pop Up from Drop Down 3. I’ve come so far as to insert a query loop in a post and select the query. November 13, 2022 at 10:24 am #2413935. 2. Register. Go to Appearance → GeneratePress. With some digging, I discovered that GP Premium implements a filter on the blog settings when a loop-template is in use on a page — in my case a search results page — and the purpose of the filter is to set the infinite scroll. Installing GeneratePress. * This is the most generic template file in a WordPress theme * and one of the two required files for a theme (the other being style. 3 set the Element > Display Rules to Blog ( and if you want you can set it on your Archives too ) At this point your home page will only show the main query loop with the pagination. However, users using different themes can now alter the default Container Width directly in the Settings area of our plugin. New: Dynamic data; New: Query Loop block; New: Image block Hi, I’m using blocks to custom titles/header of single post page. Now whichever one you edit will update both places. 2. ( 38 customer reviews) $ 4. The GeneratePress Loop Template Element 12th January 2023 13th November 2022 Recently, a new feature was introduced to GeneratePress Premium. Order Query Loop by Custom Field. 00 $10. 2. Posts. Ideally the easiest solution would be to add your won custom templates in a child theme. = Query Loop = Build a list of posts from any post type using advanced query parameters. Thanks. Adarsha. Add new Loop template. What’s the best way to in GP to set a custom query and then run the loop again with the proper html to display in the blog format I have set in the customizer?Home › Forums › Support › Bug: Double content using content templates in elements This topic has 5 replies, 2 voices, and was last updated 1 year, 5 months ago by David . Is the loop template block set up outside of the query loop block displaying the. GeneratePress theme customization takes a step forward with the forthcoming post loop builder and template tool. php template. you should now have a blog page looks similar to that example. 3. Feature: Add font-style option to Typography. Add a paragraph block inside the Post Template container block, then paste the content there. php and home. Thank you 🙂 GeneratePress 3. You can add your own custom templates in a child theme. I tried the Query Loop on the WordPress blog posts archive and it worked. It’s not working for all users. – Add Query Loop > Post/8 per page/ Add parameter / Post Tag > Tag_Name. Marcin. php; content-404. Posts. 4. Now whichever one you edit will update both places. If you want to add a Query Loop Block to the archive/blog pages, add it through a different Block Element type(not Content Template) to avoid this issue. GP 3. Pagination – in the QL blocks toolbar there is an option to add pagination. I’m aware that Generatepress writes (parses?) the code slightly differently, but I can’t work out how to do it. Donor – Lebron with headline and navigation links (and default site elements) 4. Select the Element Type -> Loop Template 3. php, then rename them to they match the slug of your CPT tag like single-project. php template. Query Loop. 0. gb-query-loop-wrapper. php . Now create a second Content Template for the featured post design. 2. Is there a way of displaying a default featured image if one has not been applied to a post or category without using a plugin?. So you would use the Author Archive display rule for that. 4. The new "Loop Template" element type in @GeneratePress. For all the 3 query loop blocks, set the posts per page to 1. So that should respect whatever that plugin is doing to the query. Thanks Ying, but I think i found an easier way to do it. Then you can add the [cat_image] shortcode in your Query Loop. Changed Content Template to Loop Template and that resolved it. also, but not with the width of the GB container: although “Inner Container Width” is set to 1400, it is only displayed with 770 width in the frontend (like standard width). With a public launch on 22 March 2023, Microsoft Loop is a new collaboration app that will keep your team’s knowledge organised. Hello, created the blog with a query loop block, on the first page of the post, I created a block above this query, I wanted to know if you know of any way to hide this block on the following pages of the query “/blog/?query-page =2”. Query Loop. The GeneratePress Loop Template Element 12th January 2023 13th November 2022 Recently, a new feature was introduced to GeneratePress Premium. Victoria, British Columbia generatepress. 5. Installing GeneratePress. I currently have a custom post type category archive as my homepage by essentially setting a redirect from an “empty” home page that I have created on the backend to the actual archive’s slug. Enable the ‘Inherit query from template’ option. The video in the article shared by Ying shows how to utilize a Content Template without using a Query Loop Block. Hope this clarifies! * This is the most generic template file in a WordPress theme * and one of the two required files for a theme (the other being style. 1 In this element add your second query loop block with the Pagination. php Like this → <?php get_header(); ?> //and then the loop here <?php Stack Exchange Network Stack Exchange network consists of 183 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their. php; content-page. Instead of using a shortcode use the render_block filter to swap out the static contents of a block. Although the plugin can be used to add posts to a page or a sidebar widget, the short code can also be used to replace the Loop generating posts on the archive page, and then it overrides the style and selection of the Archive posts , and. As soon as your visitor clicks on those images, they are straight away taken to the respective. David Customer Support. February 19, 2023 at 11:27 pm #2539378. In the instances where the query is defined by the template eg. See here for an example of that:I am sure I am missing something obvious, but I cannot get a custom post type archive to display correctly using a block loop element. Want to become a premium user? Learn more below. How to add CSS. The one exception is that Astra requires a more expensive purchase to unlock the premium Agency templates. In the GB Query Loop settings, there is an option: Inherit Query from Template – check that, and it will automatically set the query. 2. Organize your content into rows and sections. Shortcodes in query loop blocks that rely on the Post ID are an issue today. 1. I have 4 elements for Archive Pages: Site Header, Page Hero, Site Footer, and Loop Template. The content template which displays the actual posts in the loop, is displayed using this function: generate_do_template_part( 'archive' ); This calls the relevant content. As a suggestion i would do: 1. And finally how to use those. Replies. Block Element Overview. I had found the thread you referenced earlier and tried it in the context of a pre_get_posts filter in my functions. My problem is in a custom archives template I’m creating for the parent terms in the custom taxonomy. Now, open the Site Library. Volume is one of most production-ready designs in the site library and also a great example of how you can customize GeneratePress using content templates, page headers and other theme-building features. Archive page title and description: you can use a block element – page hero to replace the original one. Due to certain global variables being overwritten during The Loop is_page_template() will not work. Important: Require PHP 7. The cards should show the featured image and underneath the title and excerpt. Tom. use a Block Element – Loop template with a home page set to display the latest posts. So that code is registering the Custom Post Type. Posts. You can then create custom fields for your categories so you can just retrieve data dynamically. Any way to disable default title on post page? Goal: Don’t appear 2x. php. Go to “Appearance > GeneratePress > Site Library” section. Hope this clarifies!* The main template file. But the post under which I use also shows the same post in related post. Block Element Overview. Hi David, Thanks for your help. I would like to have the first post different, but the problem is that since I used the ‘loop template’ element, when creating the ‘first post’ element which only applies to the first post, the ‘Parent Element’ does not list the element I created with the ‘loop template’ The Services Archive page has 4 posts visible. 1 set the Element Type to Content Template. gb-inside-container { max-height: 500px; overflow:scroll; }Teams. 3 Use Consistent Design for Query Loops Displaying the Same Post Types. Content template: if I want to create a post-archive, then the content template is “only” used to influence the design for the single tile (card). 7. Page Hero Background Video. Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place. 4. February 22, 2023 at 9:59 am #2542961. jaypabs. 2. edit your Content Template, select the Top level container block, and from its 3 dot menu make it into a Reusable Block. Hi guys, When I’m trying to loop through posts on the homepage with code in a custom template, and for each post use a template part that contains code very similar to the ‘content-single. These aren’t droids that you are looking for. October 8, 2022 at 6:11 am #2367008. Set its Params for post type and number of posts, and nothing. we’re working on improving how the Query Loop grid operates, some of this requires changes that may have the odd conflict with the GP Blog columns. Having mentioned that, I perceive not everyone seems to be code savvy, and inexperienced persons won’t even know the best way to get across the WordPress PHP recordsdata. My question is how can I use the same content template method to style those custom post types listed through the query loop? I feel like I’m missing something very basic and I apologize, I couldn’t find a solution in the forum. Now, it’s time to customize the post template. Going through the docs the best I can, I *think* I do that with the Elements module – create a block element, create my query loop, set it to display on my home page (with inherit parameters), and then. Starting in GP Premium 2. the product search results are influenced by the loop template. Thanks, Leo. php you can do: i) Disable the default. The community surrounding this plugin. Created a PAGE with a container and Query Loop; Enabled Dynamic Data and used custom field name in Post Meta; And in the Query Loop – selected the CPT; But when I preview page – nothing appears. The main loop (if there is more than one loop) is the one that has one of the Multiple Posts Pagination functions before and/or after it. 2. Next, we’re going to create a query loop for the author’s posts. Thanks for the suggestion. Also when I open to edit the content, the query loop always says “no posts found” – but there are post… and they are also displayed on the frontend. License: GNU. How to add CSS. 2. Staff. I was having an issue with GeneratePress in their Elements area where users can make templates or loop templates. December 1, 2022 at 4:04 pm #2445783 for the blog i have created a loop-template. Updates Will Come With A 24-48h Delay. but now there is a new upcoming question: can one make that an infinite loop – so that when reached the last post in single view there will still be some link to the next cpt (in that case the first again) and vice versa???Hi I have a loop template for blog category pages, which used to work just fine. If you select one of those blocks you can Add Parameter in its settings eg. Pagination within a post. On the same page, is it possible for the Header block (News heading with verbiage underneath) to be made full width?. Pagination – in the QL blocks toolbar there is an option to add pagination. I have a task to replicate the layout of one of our websites using GeneratePress Premium along with the free GenerateBlock. GeneratePress Premium Free Download enables all the extended features of the Generatepress WordPress theme. Inserting Custom Templates. 1 in its sidebar settings, delete any Parameters if there are any, and Check the Inherit Query from Template 5. If I disable the loop template, the search results are displayed like products. Select the Post Template block in the Query Loop grid, and set its Flex Basis to 100%. Now you need to add template files defined by this code. I get along very well with the “query loop” function. 2 check the Inherit Query from Template Now this one element will be used on all archives and the Query Loop will display posts that match the current query March 28, 2023 at 6:39 am #2585555 If you want to keep the designs linked then a simple solution is: 1. Scott. GP automatically adds the_content() function to the theme templates. One of the is the generateblocks_query_loop_args filter that can affect the WP Query parameters of the loop. Thank you for answering!In this live workshop, I go through the process of recreating a couple of really nice blog post layouts using GeneratePress & GenerateBlocks. my-query-grid > . the home page is displaying a number of Query Loop blocks. Without rewriting templates this is about all i can think of, which is to use a PHP Snippet to hook in a global date variable into generate_before_loop:I am wanting a customized archive page for a podcast. Feature: Add “Paginated Results” to Element Display Rules. Taylor I’m trying to use Gutenberg block templates – to automatically insert a query. This block was new in WordPress 5. Infinite scroll is not working on our website (I've checked in categories using the menu and through the search function, and I'm only receiving 6 blog posts at a time. In The editor you can now add your content. GeneratePress is a free WordPress theme that focuses on performance and user experience. 0. Cannot Be Used Inside The Loop. Thank you, but is there a detailed guide where you built such a custom homepage from ground up using these tools? Or do i have to figure everything out myself?Home › Forums › Support › How to use custom loop This topic has 7 replies, 3 voices, and was last updated 1 year, 7 months ago by David . Then when I add in a GB Query Loop element, it returns “No Results Found” instead of an editable block. Movement (Best for Companies or NGO Sites) It is one of the best GeneratePress templates that you can use for various purposes although its name “Movement” doesn’t reflect it well. December 1, 2022 at 4:04 pm #2445783for the blog i have created a loop-template. blocks. 1. css). 2. In the Elements sidebar see here: You want to set the: Apply to: Posts with Term. The code which I pulled from the ACF doc here builds a loop and, strangely, it only puts out the title and href of the current page, not that of the linked posts. Feature: Add. 1. Is that what you require ? You must be logged in to reply to this topic. php in a child theme. Choose your layout to start the import. Header Element Template Tags. 1. 1. Search for: "Search. From all four tests, GeneratePress was one of the fastest WordPress themes. Yes, select the Post template (container block) under the Grid block, you can set it to 33. October 9, 2022 at 7:56 am #2367920. php ). Recipient – Jason will headline and naviigation links (and default site elements) All with blank content, so that I can speed up my page creation. It’s all WooCommerce. php as the home page template (I have set up a static home. A couple of things that you can create using this block are; Related Posts in GeneratePress; Latest Post using GenerateBlocks; A 3-column Magazine style Post Grid; Custom Blog Layout using Query Loop and Content. I hope this is possible. 4. For example, Astra, GeneratePress, and OceanWP all have tools/files to help you download a child theme. There are also various layout settings for these three in the Customizer. How can I show all available tags automatically without putting them manually in a block? Best Jochen For our users who use GeneratePress, the default Container width is controlled using the Container Width option in the Customizer. 2.