mdumka
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: WordPress Loop QuestionWell now is where is gets tricky …
The whole reason for this custom loop is so I can work on published pages and posts with out having those changes become instantly live.
So for example … I would like to limit the query to return 1 row/record or the last page/post with a post_status of ‘published’.
$args = array ( 'pagename' => 'About Us', 'post_status' => 'Published', 'posts_per_page' = 1 ); $rev_query = new WP_Query($args );So that query should return the latest published revision of ‘About Us’ … and it should not matter if its a page/post or revision … correct?
Forum: Fixing WordPress
In reply to: WordPress Loop QuestionNope …
Say I have a page ‘About Us’ … I want the page and all of its revisions.
That’s the 1st part of my Query …
Forum: Fixing WordPress
In reply to: WordPress Loop QuestionHi Esmi …
I have been doing some more research, so I think this is what I need to find all revisions of a page ..
$query = new WP_Query( array( 'post_type' => array( 'page', 'revision' ) ) );Does that look right?
Forum: Fixing WordPress
In reply to: WordPress Loop QuestionOk so ‘any’ does not include revisions so do i search for post_type that includes page and revision to make sure i am looking for everything?
Forum: Fixing WordPress
In reply to: WordPress Loop QuestionOk … so you have to bear with me as all this information is new.
First I have to place the following before ‘The Loop’
// The Query
query_posts( $args );Next … I have to supply the arguments or parameters to query_posts(). So based on the fact I want a page or any of its revisions I would use this …
‘post_type=any’
I will wait to muck it up any more until your reply …
Thanks
Forum: Fixing WordPress
In reply to: WordPress Loop QuestionThanks Esmi …
But in looking at the database, say I have a page that has 10 revisions. Only one has a post type of ‘page’ and the revisions have a post type of ‘revision’.
How would the query posts function help solve my problem?
Thanks
Mike
Forum: Fixing WordPress
In reply to: WordPress Gallery External LinksReally?
Forum: Fixing WordPress
In reply to: Password Protected PagesI think this has something to do with cookies … are cookies set when password protecting a page?
Forum: Fixing WordPress
In reply to: Password Protected PagesAnyone ever encountered this?
Forum: Themes and Templates
In reply to: Question about attachment_idThanks esmi … but no luck. I played with attachment.php, image.php, single.php and index.php and nothing.
Here is the page, maybe that will shed some light
Forum: Fixing WordPress
In reply to: [Plugin: Contact Form 7] Form Working, but no email sent …Hello … I have tried 3, could be something with the wordpress mail settings? Where do I edit these?
Thanks
Forum: Fixing WordPress
In reply to: How to Turn off CommentsOk … can someone tell me where to at least edit the attachment_id template?
Forum: Plugins
In reply to: [Plugin: eShop] Not compatible with WP 2.6.5?Hello …
I as just installed eShop on 2.6.5 and I could not even get to the admin screens.
Turns out that this plug in is not compatible with the lighter menu’s (2.7.2) plug in.
Hope this helps some one because it took me a long time to figure out.
Forum: Fixing WordPress
In reply to: How to insert PHP and Javascript into a post or page …Thanks … Worked Perfect!
Forum: Fixing WordPress
In reply to: How to insert PHP and Javascript into a post or page …bump