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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.