Vayu
  • Member for 11 years
  • Last seen more than 9 years ago
5 answers
48 votes
62k views
Deregister custom post types
8 votes

This worked for me, like Rarst said using the remove_action() if possible. add_action( 'after_setup_theme','remove_foundation_options', 100 ); function remove_foundation_options() { ...

View answer
9 answers
37 votes
47k views
How do I get the size of an attachment file?
1 votes

I was looking for the same and found this WordPress built-in solution. $args = array( 'post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' =&...

View answer
3 answers
0 votes
108 views
I'm hiding site with index.htm but now I can't get to index.php
0 votes

Under settings in WordPress you can decide where you want your WordPress site displayed. Under Settings->Site address (URL), for example if you decide to display your site in a subfolder like this ...

View answer
7 answers
31 votes
31k views
Highlighting wp_nav_menu() Ancestor Class w/o Children in Nav Structure?
0 votes

Nice work Somatic. Unfortunately, I dont get how you can list your custom post types in a page the way you explain. If I don't use a page-portfolio.php and add it to a page, all I get is 404 page. ...

View answer