WordPress custom jquery not found
Run following in your terminal: chmod 0644 /path/to/your/theme/js/common.js This command has to give your file proper rights and your web server will be able to read it.
Run following in your terminal: chmod 0644 /path/to/your/theme/js/common.js This command has to give your file proper rights and your web server will be able to read it.
Widget page broken
Can you reproduce this error in a clean install? Have you installed some new plugins in that site lately? Have you tried to deactivate all contrib plugins and themes and see if the error persists when only core is active? I fear we need some extra info to be helpful 🙁
Add Media + Quick Edit buttons not working
Original Poster’s answer in comments also worked for me, will share it here so this can have a solution. Replace: $(‘form’).submit(); With: $(‘form’).unbind(‘submit’); $(‘#submit’).click(); I used this to submit comments with JQuery with the ENTER key rather than clicking the button: jQuery(document).ready(function($) { $(‘#comment’).keydown(function(event) { if (event.keyCode == 13) {//capture ENTER Key $(‘form’).unbind(‘submit’); $(‘#submit’).click(); return … Read more
Filter custom taxonomy table
Please refer to the Template Hierarchy. Custom Post Types use two different template files, depending on context. For custom post type single post display: single-{posttype}.php single.php index.php For custom post type archive display: archive-{posttype}.php archive.php index.php In both cases, {posttype} is the custom post type $slug, as-defined in the register_post_type( $slug, $args ) call.
How can I process all requests for a given directory in a URL with my plugin?
Check out the WP_Query() function. You’ll be able to run multiple queries and get an array for each post type
Using a page template I inserted this code: <?php $args = array( ‘post_type’ => ‘productions’, ‘posts_per_page’ => 10 ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); the_title(); echo ‘<div class=”entry-content”>’; the_content(); echo ‘</div>’; endwhile; ?> Works like a charm. Now I just need to customise the loop so it looks … Read more