Skip Navigation

[Resolved] Code editor for archive page

This support ticket is created 4 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 11 replies, has 3 voices.

Last updated by AndrewL2119 4 years, 10 months ago.

Assisted by: Shane.

Author
Posts
#1797009
Screen Shot 2020-10-01 at 1.06.52 PM.png

I'm trying to create an archive page within the custom template section in the dashboard, but it just shows me straight text, rather than the code block editor like I did with the general template. Any thoughts How i can create the wordpress archive loop?

#1797649

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

It looks like you created a custom archive using Blocks, and now it is trying to edit that with the legacy editor.

Did you add the Classic Editor plugin to disable Gutenberg? That appears to be why the block editor for archives is broken.

Rather than using that plugin, you can go to Toolset > Post types and for each post type disable/enable the block editor or classic editor according to your preference.

#1797783

Nigel,

No matter what I try and switch (block, classic) it still shows up as the screenshot I sent. I am able to use the block editor for the custom template, just not the archive.

if I gave you my wordpress credentials, could you take a look at it please?

I'm guessing that since I can't edit the archives template, i can't see the event text here?
hidden link

This is the last piece of the puzzle, altho, I'll need to figure out how to create a search at the top of the listing pages, ugh.

Thanks,
Andy

#1797875

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Andrew,

I'm not able to see the credentials that you provided to nigel.

However what I can do is to re-enable the private fields for your next response so that you can resend them.

Thanks,
Shane

#1797985

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Andrew,

As Nigel had suspected you do have the classic editor plugin installed and was active. See Screenshot

I've disabled this and it should now be funcitoning.

Thanks,
Shane

#1797999

That's weird, because I did the same thing and it didn't work for me. Oh well, thank you for the fix.

For Sorting and Filter issues:

I have this page that lists out all my events:
hidden link

I guess I was able to add sorting by date (not sure what that does), but is there also a way to sort by Event Category (tag)?

And then a filter reset button?

Are you able to set that up for me on my website, so that I can then learn by seeing it in action?

Much appreciated.
Andy

#1798009

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Andrew,

There was also a setting in Divi that enabled the classic editor, as I believe the divi builder requires this.

I guess I was able to add sorting by date (not sure what that does), but is there also a way to sort by Event Category (tag)?
Given that Event Category is a taxonomy you are not able to sort by this.

I've added the reset but, you should see "× Clear all filters" on the view now.

Thanks,
Shane

#1798011

IF I set up the event categories as a field in the post type, can I then sort by category?

Are you able to set this up for me if this is possible, just with 1 event category?

#1798017

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2020-10-02 at 2.01.48 PM.png
Screenshot 2020-10-02 at 2.00.23 PM.png

Hi Andrew,

If you do set it up as a custom field then yes you will be able to do this.

Similar to how you've setup your Post Date filter you can add the custom field filter option by clicking on "New Option" in order to add the custom field sort option. See Screenshots

You also have the option to search by slug for your custom field that you want to use.
Thanks,
Shane

#1798073
unnamed.png

Maybe I didn't explain things correctly. Any chance to make it look like the attached image?

Having it lay out in a horizontal row, then sort by a specific category, by date?

Thanks for all of your help so far!

#1798085

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Andrew,

Ok so from your screenshot your category seems to be a Filter and not a Sorting.

Secondly yes you can have it look like this but you will need to use css to achieve this.

Right now we have resolved the original issue of this thread so I would recommend opening a new ticket with this issue for you to get assistance with setting up your filters in this fashion.

This is to help keep our forums streamline so that other users with similar issues can get assistance from these resolved threads.

Thanks,
Shane

#1798089

My issue is resolved now. Thank you!