How can i display post loop in table format?

You need 3 separate loops. One for each row, with each post creating a new column: <div class=”acadp”> <table> <tr> <?php while( $acadp_query->have_posts() ) : $acadp_query->the_post(); ?> <td><?php the_title(); ?></td> <?php endwhile; ?> </tr> <tr> <?php while( $acadp_query->have_posts() ) : $acadp_query->the_post(); ?> <td><?php the_content(); ?></td> <?php endwhile; ?> </tr> <tr> <?php while( $acadp_query->have_posts() ) : … Read more

How to override wp-admin styling

As noted by @Fusion, this has changed beginning with version 5. In order to override admin styles for 5.*, you need a hook in functions.php, something like this: function custom_admin() { $url = get_settings(‘siteurl’); $url = $url . ‘/wp-content/themes/my-theme/wp-admin.css’; echo ‘<link rel=”stylesheet” type=”text/css” href=”‘ . $url . ‘” />’; } add_action(‘admin_head’, ‘custom_admin’) Sources: WordPress Codex … Read more

Can I change the contents of a description meta tag generated by Yoast?

Take a look at WordPress SEO API Docs it appears you can modify the meta description tag will somthing like: add_filter(‘wpseo_metadesc’, function($description){ if ($wtv_language == ‘wtv’) { $description = “my other language meta description here”; } return $description; }); Note that $wtv_language == ‘wtv’ would need to be replaced with whatever function/variable you’re using to … Read more

How to speed up admin-ajax.php in wordpress

Here’s the answer you’re searching for: Ajax takes 10x as long as it should/could Unfortunately, the solution there involves very detailed knowledge of what parts to load / what not to load and why stuff would break. Reading through github issues / comments, it seems this doesn’t work with HTTPS. Otherwise, you really can’t speed … Read more

How can I add tinymce editor in WordPress with jQuery?

This is a good use case for the JS version of the editor introduced in 4.8: https://make.wordpress.org/core/2017/05/20/editor-api-changes-in-4-8/ A new editor API was added in #35760. It makes it possible to dynamically instantiate the editor from JS. Here’s an example of how it’s used (stolen from Rheinard Korf’s example here): // Remember to wp_enqueue_editor(); inside PHP. … Read more