close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

DataAssist Help Required: Filtering via two recordsets

Thread began 9/25/2010 4:28 am by neilo | Last modified 9/27/2010 8:55 am by neilo | 3219 views | 13 replies

CraigRBeta Tester

this may be rubbish, but...

i looked at the table relationships of the wordpress tables on this link Database_Description

i can't confirm the relationship between wp_posts and wp_term_relationships, so for now i have assumed object_id on the relationships table is ID on the posts table.

based on this massive guess of an assumption, i have collated a sql statement with a few inner joins, which at present should return all the rows in the posts table where the slug is 'site-news-item'

if my assumption isn't total rubbish, you may be able to use this to get what you want.


SELECT * FROM wp_posts INNER JOIN wp_term_relationships ON wp_term_relationships.object_id = wp_posts.ID INNER JOIN wp_term_taxonomy ON wp_term_taxonomy.term_taxonomy_id = wp_term_relationships.term_taxonomy_id INNER JOIN wp_terms ON wp_terms.term_id = wp_term_taxonomy.term_id WHERE wp_terms.slug = 'site-news-item'



failing that, i either need to play with wordpress a bit, (long overdue) or you could send me a pm with your sql dump and i will have another try.

as for now, it's Sunday night and i am going to grab a glass! :-)

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...