Run a jquery script on on a certain template page
There is is_page_template() conditional tag to check for that.
There is is_page_template() conditional tag to check for that.
You can find an extensive function reference on the codex here. http://codex.wordpress.org/Function_Reference And there’s also the WordPress PHP Doc which can be found here. http://phpdoc.wordpress.org Anything in particular you were looking for?
You may want to look into child themes – they allow you to customize your theme without overwriting the original files, meaning you can still take advantage of updates to the original theme. This tutorial on Themeshaper taught me a lot.
If the differences in the pages are just query arguments the you can add query vars and use them in the same template: //add your arguments to query vars add_filter(‘query_vars’, ‘my_query_vars’); function my_query_vars($vars) { // add my_sortand ptype to the valid list of variables you can add as many as you want $new_vars = array(‘my_sort’,’ptype’); … Read more
The attachment.php is a specific template in the WordPress template hierarchy. WordPress uses it for a specific purpose, and the default Loop just won’t do what you’re claiming it’s doing. (The behavior you’re describing would be analogous to the single.php template file looping through all Posts.) I’m guessing your attachment.php template file has a custom … Read more
Look at this: http://www.seodenver.com/custom-rss-feed-in-wordpress/
Just use the built-in exporter/importer. Export from the existing site, and import into the new site. You won’t ever even need to touch the database.
You can utilize the wp_trim_excerpt filter. In your callback function that filters the the excerpt text, you can test for the presence of a certain template; then, if that template is being used, you can go ahead and alter the excerpt in any way that you see fit. In order to determine which template is … Read more
It doesn’t have one and it doesn’t advertise it either. Check the WordPress.org page, it advertises “three layout choices” and “three footer areas” but nowhere does it say it has a 3 column design. In fact, on default single pages it doesn’t even have a 2 column design as it has no sidebar.
Build a custom sql query that selects the latest testimonials from the table that the plugin creates. Use $wpdb->get_results($sql_query) to get the results as an array, and then loop over it in your markup.