Site logo

Archived topic

How to create a dynamic card as a Business Directory?

3 replies · Started by shlomo on April 21, 2022

Viewing posts 1–4 of 4

Hi there,

We want to create a business card that can be auto-created from the list of our spreadsheet business info. Is that possible with your theme?
We don't want to use a plugin for this as much as possible.

Thanks,

Shlomo

Hi there,

that doesn't sound like something a Theme should be responsible for.
How is this spreadsheet info stored in your WP site ?

Maybe we can simplify this. Is it possible to create a card using GeneratePress Premium? We need to create a card without a plugin. And would also like if possible that we can generate a card dynamically from a file like a spreadsheet or something else.

Simple answer to that is no.

To cover the basics:
WordPress writes and fetches data from the WP server database.
And the Theme provides the Templates that output that data using core function callbacks eg. the_title(), the_content(), get_post_meta() etc..
The Templates are a key point here, as that is all the Theme is responsible for when it comes to displaying content.
And yes you could use a Block Element to design your Content Template and have it display Data if is is stored in the Post Meta data tables.

So if you used a Custom Post Type to 'store' your business directory entries, then you could use WP and GP to display them as a single post or within an archive.

However if you have data outside of WordPress then the first thing you would need is to create some integration for the two, or some other third party application that outputs that data for you. Its not something that WP can do out of the box.

This archived topic is closed to new replies.