The populate content feature only seems to work by allowing you to populate the template with the contents of a page, not a post. If building a template for blog posts, this is of course useless.
While editing a template of type “single”, go to Template Settings > Populate Content, then select “Single Post/Page” for “Content Type”. Then in the list of posts/pages in the “Single post/page” dropdown, only pages are listed (plus one template, for some reason).
Yes I know about the search field, but it will only search for items already in the list. At the time, none of the posts were in the list, however, today when I look, they are there.
No issue at the moment, but there’s a bug in there somewhere.
The problem is: if we cannot reproduce an issue consistently, we’re not able to solve it. So let’s see if the problem occurs again and if so, please try to find a way to reproduce it multiple times in a row.
These “sometimes it happens” bugs are really hard to tackle
I had this issue today. The conditions were it was the first Post template I created and It only showed Pages no posts. I came here looking for help and saw others had the same problem.
I closed the windows and re-opened them and it worked.
It feels like there is a bug (could be user error). I would assume it can be re-created with a fresh install of bricks.
I have the same issue as @crsmoore. Pages show up fine in the list (I have no regular posts yet) but most of the time none of my custom post types show in the list. (the odd time it will list a custom post type for FAQ)
Using the search only seems to return pages in the initial list at first unless I type the exact first word of the custom post I am looking for.
I am using Bricks 1.6.2 and the latest version of Metabox AOI.
Hey Tom,
Normally it is not necessary to enter exactly the first word. In my case, it also works with a few letters, that don’t have to be at the beginning of the post title:
The part that needs to be fixed is simply showing the options to use which include custom post types, as the options I see there are only default ones (media, pages, posts). Even with the search, nothing else shows up (for my, I have events as a CPT with hasarchive true, so they are viewable as single pages, and the template in Bricks applies to them, but I am unable to select any event posts from the dropdown to preview.
Can you provide a screencast of your exact CPT setup and how the search is not working for you? I can search and find posts of CPTs without any problems.
Sure thing. Very likely something I’m doing wrong in that case.
When I run a specific search I can now find the project, but by default, the custom post type I’ve applied to that page doesn’t show up just pages each time. Maybe that’s what’s meant to happen, just not overly user friendly when pages is almost never needed as a default option to populate content, as you edit those separately within Bricks anyway (if that makes sense).
If you need to use search and find for any CPTs that’s not the end of the world though.
Yes. I don’t think that the template conditions play any role in regards of what posts are listed by default. But using the search you should always find what you’re looking for.
I’m confused by your template conditions though. Where does this “Archive post types” setting come from?
This is what it looks for me when using the “Post type” condition:
Well, this functionality does not exist yet, so it is a feature/improvement request, not a bug fix. That’s a big difference As far as I can see, there is not such a request on the idea board: https://bricksbuilder.io/ideas/
About your template conditions: This is probably the problem. You have created an archive template that you use as a single template. Accordingly, the label shows “Archive post types”, as Andre has already noted.
Please change the template type of the single template to “Single” (see screenshot), then everything should work fine.
But @timmse, how is it possible that on his screenshot there are inputs for archive post types and post type right above another within a single condition pane? Can’t get my head around it.