Jump to content

Is Wordpress really this crap?


Novice@PHP

Recommended Posts

I can't believe WP is in it's 3rd version and still is really awkward to make a custom post loop by using certain ID's stored in a table.

 

I have 10 id's that dynamically change which are stored in a table outside of wp_posts. It seems even if I do manage to get these Id's Wordpress is pretty useless at being able to make a loop to display the data from them.

 

I've even tried paying someone to do it for me and they said they couldn't do it.

 

Basically all I want is for silly WP to create a loop of 10 posts ID's which are selected from a separate table then let me display them using while have_posts or something similar.

 

I guess WP really is still crap if it can't do this?

 

Here's what they provide for a custom select loops. You'll see that you can't loop by post id. grrr.

 

http://codex.wordpress.org/Displaying_Posts_Using_a_Custom_Select_Query

Link to comment
https://forums.phpfreaks.com/topic/215053-is-wordpress-really-this-crap/
Share on other sites

Why are you querying an external table? If you're just doing posts, you can use the regular posts/pages system, and exclude them from showing up anywhere else (by category/parent page).

 

Your other options are to just use straight up PHP to query the table, or the plugins API.

 

This is exactly like how people blame PHP for their own incompetence.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.