Hot answers tagged

2

Here's a workaround: First change the paginate_links() output type to: 'type' => 'array', Then we can collect the previous, current and next parts from the paginate_links() output. Here's a simple example where we target the relevant classes: $next = ''; $current = ''; $prev = ''; foreach( (array) $paginate_links as $link ) { ...


2

The priority is related to other actions for the same hook. For example, if another plugin would implement add_action for wp_enqueue_scripts with a lower priority, they would have their scripts loaded in front of yours. You should check what scripts are inserted above yours and see if there is a css conflict.


1

Add <?php get_footer(); ?> into index.php or the template you are using Then create footer.php and add in something like this: <?php /* Always have wp_footer() just before the closing </body> * tag of your theme, or you will break many plugins, which * generally use this hook to reference JavaScript files. */ ...


1

Figured it out after thinking it through.. if (stripos(strtolower($template_filename), 'home') !== false) { $results[] = $template_name; }



Only top voted, non community-wiki answers of a minimum length are eligible