Novice@PHP Posted October 3, 2010 Share Posted October 3, 2010 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 Quote Link to comment Share on other sites More sharing options...
trq Posted October 4, 2010 Share Posted October 4, 2010 I would suggest that whoever you hired was crap. I've not done any WP customizations but there is nothing you can do in php that can't be done in WP if you know what your doing. Quote Link to comment Share on other sites More sharing options...
Codarz360 Posted October 7, 2010 Share Posted October 7, 2010 WordPress is developed in PHP so there must be someway of developing a modification to make it perform what you would like it to do. Quote Link to comment Share on other sites More sharing options...
Rakuhana Posted October 8, 2010 Share Posted October 8, 2010 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.