admin管理员组

文章数量:1134247

The Background:
I am a software developer that is trying to create a sports analytics website. I used to created wordpress-based sites on the side so I have a WHM where I can host sites. I'd prefer to host the site here because it is already paid for :-).
Anyway, on my team's game days I want to create a post / content that I will update regularly with the fancy stats, graphics, etc. I plan on purchasing a theme that I will use as the template for my site. I have a working knowledge of wordpress and posts.

The Question:
What is the best way to go about this? I've spent the last little bit googling this and I can see that there is an API available and lots of examples of creating simple posts. That said, do I really want to try to create and send a whole lot of html in my code? The layout for these pages would be roughly the same (there will be a section for each period of the game, and I will fill in the content for that area when the data is made available).

The only thing I really, really want to avoid is a php-heavy solution. The data science part of this is hard enough - I don't want to become a php expert.

Possible solutions:

  • Creating a hidden post with tags that I can look for to do a search and replace. Maybe I would create a new post from that post? I haven't investigated this year to see if it is possible in the api.
  • A custom post type with custom fields. I haven't done much in this area. If I did, I would need utilize one of the post types that came with whatever theme I am purchasing.

Thank you so much in advance!

The Background:
I am a software developer that is trying to create a sports analytics website. I used to created wordpress-based sites on the side so I have a WHM where I can host sites. I'd prefer to host the site here because it is already paid for :-).
Anyway, on my team's game days I want to create a post / content that I will update regularly with the fancy stats, graphics, etc. I plan on purchasing a theme that I will use as the template for my site. I have a working knowledge of wordpress and posts.

The Question:
What is the best way to go about this? I've spent the last little bit googling this and I can see that there is an API available and lots of examples of creating simple posts. That said, do I really want to try to create and send a whole lot of html in my code? The layout for these pages would be roughly the same (there will be a section for each period of the game, and I will fill in the content for that area when the data is made available).

The only thing I really, really want to avoid is a php-heavy solution. The data science part of this is hard enough - I don't want to become a php expert.

Possible solutions:

  • Creating a hidden post with tags that I can look for to do a search and replace. Maybe I would create a new post from that post? I haven't investigated this year to see if it is possible in the api.
  • A custom post type with custom fields. I haven't done much in this area. If I did, I would need utilize one of the post types that came with whatever theme I am purchasing.

Thank you so much in advance!

Share Improve this question asked Sep 5, 2023 at 1:05 AdamCodes716AdamCodes716 1
Add a comment  | 

1 Answer 1

Reset to default 0

I ended up giving the wordpress api a go, and so far things are good. I found it easier to build an example post in the UI, retrieve the post using the API, and then use the retrieved fields to build a new post.

本文标签: apiTrying to create and update wordpress from python library