Forum Moderators: rogerd & travelin cat

Message Too Old, No Replies

How would you do this in WP

         

le_gber

10:33 am on Mar 19, 2022 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi all, thanks in advance for the help.

[I have a card-based game fansite - hand coded, now thinking of migrating it to WP]

I am trying to think of the best way to create the pages that would display the same basic information for each card ie, cost, hp, dps etc... and after having thought about it ended up with a mix of ACF and Custom Post Type.

Is this the best way to achieve this in WP?

NickMNS

4:58 pm on Mar 19, 2022 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Why WP? I would strongly recommend reading through this thread which discuss some points that you may find relevant.
[webmasterworld.com...]

not2easy

5:28 pm on Mar 19, 2022 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Thank you, NickMNS. I definitely would not recommend migrating to WP until and unless you have a very thorough understanding of what it is, how it works and the reasons it can succeed or fail.

@le gber - Your description does not sound like something that WP works well with. WP specializes in multiple ways to find things but often goes beyond what you have in mind so that rather than clarifying objects/items/data it works to muddy the path and confuse its users.

WP can help you manage users and static pages when combined or integrated with a static site but it adds as much work as it is "saving" for you. If you really want to use it I recommend to start at wp.org and read though the documentation so you understand what it can and can't do reliably.

lexipixel

6:44 pm on Mar 19, 2022 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I would create a plugin with a Custom Post Type (and Custom Taxonomy). That would give you the most control over everything. (And leave the default "blogging" features of WordPress to actually "blog" on the site).

Unless you need other features (or additional Post Types) using ACF just adds another dependency.

To make it easy to add content to the site (and not have to manually select and populate the custom fields in the default "classic" or "block" editors, you could code a front-end posting form into your plugin --- laid out to organize and present the fields needed for each record.

lexipixel

6:54 pm on Mar 19, 2022 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



...another idea would be to use WooCommerce --- and make each card a "product" (even if you don't sell anything). You might find the default products data structure close to what you need...

le_gber

10:16 am on Mar 20, 2022 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



@NickMNS, thank you for your feedback. I know and have worked with WP for the last 15 years, in my head it will make maintaining the site easier as I am not too keen on developping my own PHP script to manage the cards (and the other aspects of the site). I will probably post tutorials / blog and things that would fall nicely under what WP was originally designed to do.

@not2easy thank you, I believe I have a pretty good understanding of what WP can do when no plugin are installed, I was just wondering if this ACF + CPT is the best way to achieve this, "the easy way".

@lexipixel, thanks, I was indeed thinking of additional post types - decks (collection of cards + strategy) , arenas, videos (optional)

TorontoBoy

3:11 pm on Mar 20, 2022 (gmt 0)

5+ Year Member Top Contributors Of The Month



No, just no. Square peg, round hole.

tangor

5:14 am on Mar 21, 2022 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



[I have a card-based game fansite - hand coded, now thinking of migrating it to WP]


What is deficient in the current site that leads to thinking about WP?

Much as WP wants to be a one-size-fits-all solution, there are so many scenarios where it is inappropriate to the task desired, and bloated out the wahzoo (inefficient).

If you CAN roll your own, do that, ONCE, and be done.

lexipixel

9:53 am on Mar 21, 2022 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The title of this thread is "How would you do this in WP".

OP also stated "I know and have worked with WP for the last 15 years", and asked if Custom Post Types < [developer.wordpress.org ] > and ACF, (Advanced Custom Fields plugin, < [wordpress.org ] >) is the way to go.

I'm the "roll my own" type, (and have been for 45 years)... now I see rolling my own Wordpress plugin as a solution for many things.

You can't think of WordPress as "blog software" any more, and if you avoid it at all costs and stay ignorant to how it works, you are cutting yourself off from the largest single sector of the CMS based programming/developer market.

+40% of all websites run on WordPress, (and if you like statistics, WP has +60% market share for sites powered by "any CMS" -- next is Joomla with about 5% of CMS market share)

CMS Market Share Trends – What’s Changed in 2021
Content management systems (CMS) have exploded in popularity over the last ten years. In 2011, a whopping 76% of websites were hand-coded. Now, with the availability of CMSs like WordPress, Shopify, and Wix, that percentage has dropped to 36%.

WordPress: The undisputed market leader
The CMS market is dominated by one big player – and it’s probably no surprise who. According to W3Techs, WordPress’s share of the CMS market has grown from 51% to 65% in just ten years. It also powers 43.3% of all websites, and 34.68% of the top 1 million websites on the web.

[tooltester.com ]


I think we need to drop the "real webmasters don't use wordpress" attitude here.

.

lexipixel

9:01 am on Mar 25, 2022 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



@le_gber

NOTE: I've used GenerateWP to develop Custom Post Type code, < [generatewp.com ] >

There are also generators for Custom Taxonomy and many other types of WP code...

The generated code can be cut and pasted into a theme's functions.php page or into the PHP files when creating a plugin.

GenerateWP.com
[generatewp.com ]

.