Search the Community
Showing results for tags 'taxonomy'.
-
Change tag/category page format for Wordpress
EnduringEpilepsy posted a topic in Third Party Scripts
Hi everyone, newbie to site looking for help with my tag/category page formatting. I recently bought a plugin for masonry and have been trying to make it the display for posts on my blog pages as you can see here: http://www.enduringepilepsy.com/_blog/ and http://www.enduringepilepsy.com/archive/_2013 It's been helping my design and page load overall (Note: I do use Google Page Speed Service) But I cannot figure out how to be able to use this customizable masonry for my tag/category pages since they do no show the ability to edit on the Wordpress admin bar. I've looked at the php code in my files, and while I have become more familiar with php in the yr since I moved to Wordpress, am unsure how to edit these pages without making a mess. The plugin is http://codecanyon.net/item/essential-grid-wordpress-plugin/7563340 My theme, called Inzin, is no longer sold, and the developer disappeared from online. So I have lost all support. I would really appreciate any help anyone could offer. Thank you! -
In the below function I am trying to understand the $new_rules array. I understand it is matching a pattern an then rewriting that pattern to a friendly url. But I just don't understand the logic of what portion is capturing the pattern and what portion is telling it to rewrite in another format and what that format is. Could someone help me understand each section of the $new_array in basic terms so I can understand the logic of the matching and rewrite? I am trying to learn this but just can seem to get it. In this example cardealers is my custom post type, and brands and state are a taxonomy. Thank you! function eg_add_rewrite_rules() { global $wp_rewrite;[/font][/color] $new_rules = array( 'cardealers/(brands|state)/(.+?)/(brands|state)/(.+?)/?$' => 'index.php?post_type=cardealers&' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4), 'cardealers/(brands|state)/(.+)/?$' => 'index.php?post_type=cardealers&' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) ); $wp_rewrite->rules = $new_rules + $wp_rewrite->rules; add_action( 'generate_rewrite_rules', 'eg_add_rewrite_rules' );