[ad_1]
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?
- This topic was modified 4 hours, 54 minutes ago by .
The page I need help with: [log in to see the link]
