Custom Fields : Howto filter blocks on home ?

Posted in: Newspaper
Post count: 30

Hi there,

I looked for a way to use Custom Fields to filter articles on the home page with it.

Any idea how I can do it?

Thanks!

  • This topic was modified 8 years by AlexSoyer.
Post count: 20688

Hi,

Blocks and grids already have post filtering and sorting available
https://forum.tagdiv.com/block-settings-guide/
Each of these can display the posts you want on any given page.

Thanks

Post count: 30

Hello,

I already have been on this link, but I do not see any part of “Custom Fields”, only “Custom post type”, which is different to me.

Thank you!

Post count: 20688

Hi,

Blocks and grids can display posts, pages or custom post types. They do not have any options for custom fields. Other filtering options cannot be added unless code modifications are made, and the new methods are implemented if even possible. Those would be all the block settings, mentioned in the guide.

Thanks

Post count: 30

Hello,

I do understand it well.

If I do create CPTs, is it possible to use the same template as Articles in those pages ?

Theme panel

  • This reply was modified 8 years by AlexSoyer.
Post count: 30

Answered in the documentation:

https://forum.tagdiv.com/custom-post-type-support/

How to create a custom single template for your post type:
Step 1 – Pick one of your favorite single templates (check the next image)
Step 2 – Copy it to the root of your child theme folder
Step 3 – Rename it to single-your_post_type.php (replace your_post_type with the WordPress ID of your post type. In our sample plugin the id is td_book so the file should be called single-td_book.php)

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.