Home › Toolset Professional Support › [Resolved] Creating an archive page.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Kolkata (GMT+05:30)
This topic contains 25 replies, has 3 voices.
Last updated by martham 3 years ago.
Assisted by: Minesh.
We are trying to create our first archive page using Toolset and can't seem to get past the step that says Select WordPress Archive Loop Style. We select Unformatted, but nothing happens after that. The page we're creating is for a content type called Benefactors. We did successfully create a content template for the Benefactors content type, but can't get the archive page working. We tried to look at a video you have for this, but the interface we are seeing does not match with what was shown in the video. So I'm guessing that you have modified the interface without modifying your tutorial video yet.
If you can get us through the setup of this archive, I'm sure we'll be able to do this again for all our other content types after seeing how to do it one time. Any assistance will be appreciated.
The page we're creating can be seen here:
hidden link
It is currently blank. It should have three posts from the Benefactors content type present here. I think it is blank because we are stuck on the step mentioned above and we haven't defined any blocks to the content we want yet.
I don't know if this is relevant to my situation or not, but I thought I'd add the following information. On the WordPress Archive - Design page, I'm seeing the following information in the Google Chrome console:
-----------------------------------------------------------------------------
JQMIGRATE: Migrate is installed, version 3.3.2
deprecated.min.js:2 wp.nux is deprecated since version 5.4. Note: wp.components.Guide can be used to show a user guide.
i @ deprecated.min.js:2
jquery.min.js:2 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check hidden link.
send @ jquery.min.js:2
deprecated.min.js:2 wp.editor.InnerBlocks.Content is deprecated since version 5.3. Please use wp.blockEditor.InnerBlocks.Content instead.
i @ deprecated.min.js:2
deprecated.min.js:2 `wp.data.select( 'core/editor' ).getBlocks` is deprecated since version 5.3. Please use `wp.data.select( 'core/block-editor' ).getBlocks` instead.
i @ deprecated.min.js:2
blocks.min.js:2 Block successfully updated for `core/button` (Object).
New content generated by `save` function:
<div class="wp-block-button is-style-outline">Visit</div>
Content retrieved from post body:
<div class="wp-block-button is-style-outline">Visit</div>
?v=2.0:16 WebSocket connection to 'hidden link' failed:
w @ ?v=2.0:16
?v=2.0:16 WebSocket connection to 'hidden link' failed:
w @ ?v=2.0:16
?v=2.0:16 WebSocket connection to 'hidden link' failed:
w @ ?v=2.0:16
DevTools failed to load source map: Could not load content for hidden link: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
-----------------------------------------------------------------------------
Note the lines above about the WebSocket connection failing. Those are showing as red fatal errors. The line below that about DevTools failing to load source map is a yellow warning message. I'm thinking these are possible reasons why I'm unable to get past the Select WordPress Archive Loop Style step.
I figured out how to get past the problem noted above. But I'm still not able to get my archive page designed how I want it. This is extremely difficult to figure out how to get everything working with setting up blocks that contain dynamic content pulled from custom fields within specific Post Types. Sometimes I can set up a block and it lets me define the field from the field group that was set up for the content type. But then the next time I try to do the same thing, the field group is not listed among the sources available. This is highly confusing and frustrating. I realize there will be a learning curve to using your plugin, but I've spent hours on various efforts with this already and am no closer to having what I want than when I started. I've sent all efforts to the Trash and deleted them because I can't seem to achieve what I'm going for. I'm trying to emulate existing content built with Drupal's Views system on a Drupal version of the website. I found your plugin as something that could potentially serve as a WordPress replacement for Drupal's Views. I was able to get this to work fine with the Content Templates. But archives are proving MUCH more difficult.
Hello. Thank you for contacting the Toolset support.
The archive should work normally but as you said you migrated the content from Drupal to WordPress and there are few fields that you should know how to display it with archive.
Can you please share details what fields you want to display and share admin access details and archive link so I can check whats going wrong with your setup.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
Hi there
It seems like you have navigated past your initial problems, but are now stuck on whether the custom fields are available as dynamic sources in the archive, yes?
The options that are offered are based on the first post returned by the archive (in much the same way that the fields offered for dynamic sources in a template depend on the post the template is being previewed with).
If the first post has values for certain custom fields, they will be offered in the dynamic sources UI.
This does raise the possibility that you assign some custom field to a post type but cannot output the field in the archive, if the first post doesn't have a value for that field, and we have internal notes to improve this, but in the first instance I would check whether the first post has values for the fields, or you could change the sort order of the archive so that a different post is returned first.
(You should always be able to output the post title, so you can see which posts are being returned by the archive.)
Just checking if you received the private message with the requested credentials that I just sent.
I checked the Archive listing page and I do not see any archive is listed over there:
=> hidden link
Can you please tell me what archive you want to create and what you want to display it. I would be happy to help.
Regarding chat option, I see you are in US timezone and there is no resource available at the moment in that timezone due to coming holidays.
Yeah, I deleted all my previous efforts because I couldn't get anything I was trying to do to work. If I can see one done, I should be able to figure out how to emulate that, but I couldn't get any of them to pull content from the custom fields as needed on the archive pages like I was able to do on the page templates.
If you can walk me through it, I'd like to set up an archive page for Benefactors first. The page I'm trying to emulate is here:
hidden link
That's on the Drupal site that is still live. We're trying to move to WordPress and want to see if we can get all our dynamically built content using Drupal's views done to produce the same or similar results in WordPress.
For the Benefactors archives page, the order of the fields shown on the page should be
1) Benefactor Level
2) Post Title
3) Contact Person
4) Company Website
5) Company E-Mail
6) Address
7) Post Body
I try to create archive:
=> hidden link
I've added the fields you mentioned without any issues to above archive and you can see the archive on frontend here:
=> hidden link
You can design/format the archive as per your requirement.
OK, I see that you have achieved what I was going for. Thanks for that. I knew the plug-in could do it from what I was seeing and that I just wasn't making the right choices with the settings.
The next one I'm trying to do is for the Meeting Minutes content type. The page I am trying to emulate is here:
hidden link
I have started setting this one up. I now see where I was making my mistake previously. I needed to choose Toolset - Single Field where I was adding my blocks for the fields. I'm not sure what I was clicking there, but I now tried Toolset - Single Field and I'm seeing where the options I need are present.
So now, to complete the Meeting Minutes archive page, all I need to figure out is how to change the link text on the Meeting Minutes File field output from the URL to the text I'd like instead. What I'd like to do is as follows:
But that's not working as hoped.
I have already successfully modified the field output using HTML to include the desired image file before the link output. But I can't figure out how to replace the file link text. Can you show me if there is any way to accomplish this?
I will continue trying to set up the remaining archives needed next, but I wanted to respond to let you know about this Meeting Minutes archive effort first so you'll know that I'm a lot closer to being able to do this myself now. Thanks hugely. As I encounter issues with the remaining archives, I'll let you know if there's anything where your support is needed.
I have successfully created the Photo Contest Image archive as desired. But there is one setting I can't figure out with this.
Go to this page:
hidden link
See the field called Winner with each of these? What I'd like to do is set up the Winner field to be conditional so that it will only display if the value assigned for that post is Yes. I tried setting up a new Toolset Conditional field. I was able to figure out how to set the rule as using this field with a static value of Yes. But nothing displayed on any of the posts when I set that up. So I'm sure I did it incorrectly. Can you show me how to make this field only show when the value is Yes?
I have successfully completed the Staff archives page as needed. My entire problem was not knowing that I needed to choose single field. I'm able to do what's needed now.
So my 2 remaining questions in here are above, but I'll re-ask them here.
1) How can I recode the Meeting Minutes file field to use the Post Title as what displays instead of the URL to the file?
2) How do I set up the conditional field on the Photo Contest Image archive page?
I'm going to have some additional questions for more advanced functionality later, but this is a huge start getting past both the Content Templates and Archives issues. The next thing I'm going to work on is recreating Store reports generated through Drupal Views. I see you have extensive capabilities with Woocommerce here, so I'm hopeful I'll be able to emulate all of our reports. I'll start a new support ticket when I get to any stumbling blocks setting those up. Thanks again for your assistance.
Can you please share problem URL as well as tell me what you want to implement with what field and what place exactly what?
OK, for the first issue, look at the following:
1) Go here - hidden link
This is the Meeting Minutes archive.
2) See how it is currently set up. I have the post title first (example - January 2020 Meeting Summary) Then after that I set it up to show the custom field for Meeting Minutes File. But then I modified the output by making it HTML. I added the leading image file that we want before the link. But the link to the file is displaying the URL as the link text. What we'd like to do instead is to have it display with some custom text along with repeating the page title. So instead of showing the URL, we'd have it say "Download the January 2020 Meeting Summary here."
See how we have it here: hidden link
I can't figure out how to change this text. The HTML content as I currently have it is:
<img src="hidden link" style="float: left; margin-right: 7px; margin-top: 7px;"><div class="tb-field" data-toolset-blocks-field="1" data-last-update="1.4">[types field='meeting-minutes-file' output='normal' ][/types]</div>
I tried changing it to:
<img src="hidden link" style="float: left; margin-right: 7px; margin-top: 7px;"><div class="tb-field" data-toolset-blocks-field="1" data-last-update="1.4">