current_page_item and custom post type?
You should use wordpress’s built in menu manager for this, along with a specific template file for listing the custom post types (for instance template-literature.php).
You should use wordpress’s built in menu manager for this, along with a specific template file for listing the custom post types (for instance template-literature.php).
I found this article: http://codex.wordpress.org/Configuring_Wildcard_Subdomains_for_multi_site_under_Plesk_Control_Panel I had used it originally when setting up the wildcard subdomains on my Plesk server. At first I didn’t need to worry about the webmail section, but now I do, and here’s what I did: $ cd /etc/apache2/conf.d $ mv zzz_horde_vhost.conf zz001_horde_vhost.conf $ /etc/init.d/apache2 restart This way, the Horde config … Read more
I have looked over the wordpress.org plugin directory and I couldn’t find anything… but you can always do this: 1) Create a copy of the wp-login.php and name it to something secret so you can always login later (like superlog_in1234.php) 2) Edit wp-login.php and look for all the <form> elements, and replace them with <meta … Read more
Yep, believe so. Try this (enqueue in admin styles): Show sub-menus at all times #adminmenu .wp-submenu, .folded #adminmenu .wp-submenu { display: block !important; } Hide Pop-up Navs .wp-submenu.sub-open { display: none !important; } That should get you started with it, otherwise you can go to wp-admin.dev.css and edit the navigation there, starting at line c. … Read more
What you’re looking for is probably something along the lines of: <ul id=”news-ticker” style=”float: left;height: 15px !important; margin-left: 2px; margin-top: 10px; overflow: hidden; position: relative;width: 500px;”> <?php $rsslist = array( “http://thehoopdoctors.com/online2/newfeed/”, “http://thepigskindoctors.com/newfeed/”, “http://thepuckdoctors.com/newfeed/”, “http://thecagedoctors.com/newfeed/”, “http://thedugoutdoctors.com/newfeed/”, “http://videogoneviral.com/newfeed/” ); foreach ( $rsslist as $rssurl ): /* For every URL in the feed list */ $feed = fetch_feed($rrsurl); … Read more
How about the wp_generate_tag_cloud() function? You’ll need to feed it $tags, which is an array of objects with the link and term_id, set something like this. $tags[]->link = $link; $tags[]->id = $tag->term_id; The term_id will only be used in the CSS…so don’t sweat that too much.
Answering my own question here: Is it really as easy as including this within a pre_get_posts filter? $query->set(‘category__not_in’, $term_id);
You don’t need to enqueue jquery if it’s already being referenced in my ‘my-script’. Also you’re running php within php, so you can change this: “<?php echo get_template_directory_uri() . “/my-script.js”?>”, to get_template_directory_uri() . “/my-script.js”,
For anyone using Thematic, the thematic_create_description() filter worked nicely.
It most likely was a bad upgrade. You should manually download the latest WP version and overwrite all directories except wp-content. Your wp-config.php file won’t be overwritten. This should fix the issue.