how change posts_status from published to any
-
in my website (mwallpaper.ir) , i show attachment pages like a post, so i need to show inherit post_types in wpp query
i changed line 463 in Query.php file from this :
$where .= ” AND p.post_password = ” AND p.post_status = ‘publish'”;
to this :
$where .= ” AND p.post_password = ” AND p.post_status = ‘publish’ OR p.post_status = ‘inherit'”;problem is : everytime i update the plugin i should change this line in plugin files, Is there a way to change this from theme functions file?
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘how change posts_status from published to any’ is closed to new replies.