abelcreative
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: remove duplicate postsscript worked great for me (also note, for WP 2.5 users, you need to add:
return 0;
afterif ($post_name_check || in_array($post_name, $wp_rewrite->feeds) ) {
on line 1284 of wp-includes/post.php to get the duplicate posts to stop.However, after running the above script, my category count in the sidebar is still reflecting the old, bloated count (using show_count=1). If I go to the manage screen in the admin mode, the count is correct, but not on the live site. Any clue why this would be happening??
Forum: Fixing WordPress
In reply to: Display archives by category with count in a tableActually, a great question! I’m looking for a way to show posts in categories as graphs/charts, this seemed like a good start:
https://www.filamentgroup.com/lab/creating_accessible_charts_using_canvas_and_jquery/
Just wasn’t exactly sure how to get the data into a tabular format.
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] NGG Slideshow stopped workingwoke up this morning with no problems as well – how bizarre!
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] NGG Slideshow stopped workingI’m having the same problem – I upgraded – slideshow broke. Uninstalled and deleted the plugin and pout .93 back, still didn’t work – put .94 back with the functions.php bug fix, still broke – theodyc.com – not sure what to do now
Forum: Plugins
In reply to: NextGen Gallery – slideshow only shows “get the flash player”I’m using the phpspeedy plugin and it was interfering. I’m simple set it to ignore the swfobject.js file and all was well. Sorry if that doesn’t work for anyone else.
Forum: Fixing WordPress
In reply to: Conditional nav – highlight sub pages as “current” ?that post explains everyting you need to add nav dynamically:
for main nav:
<ul> <?php wp_list_pages('title_li='); ?> </ul>
for sub pages:
<ul> <?php wp_list_pages('title_li=&child_of='.$post->ID.'&show_date=modified &date_format=$date_format'); ?> </ul>
Forum: Fixing WordPress
In reply to: Conditional nav – highlight sub pages as “current” ?I believe this is a new feature in WP 2.3.3 – what version are you running?
Forum: Fixing WordPress
In reply to: Conditional nav – highlight sub pages as “current” ?Super easy man, by default WordPress assigns classes to current pages li items, and than changes that class if the current page has a parent.
For current page, the class is ‘current_page_item’
If that page has a parent, it will change to ‘current_page_parent’ and if you have dynamic subnav available in your theme, the link of the page you’re on will include the ‘current_page_item’ as a class. So using CSS you can style those links to change with that class. Hope that makes sense.You can read all about it (and how to dynamically show your subpages) here – https://codex.www.ads-software.com/Template_Tags/wp_list_pages
Forum: Fixing WordPress
In reply to: Remove plugin header code from specific page templatesGreat idea jonahcoyote and very good challenge moshu – I have no idea why more people aren’t pining for this!
Forum: Fixing WordPress
In reply to: List Child PagesI could use some help with a similiar issue:
I’m using this in my sidebar:
if (is_page('about')) { // our about page. echo "<h1>title</h1> <ol><li>Content here</li></ol>";
I’m wondering if there’s a way to write this so that that block of content appears on the about page and any child page of the about (i.e. pages with About marked as a page parent)
Forum: Fixing WordPress
In reply to: Remove plugin header code from specific page templatesso far it seems it only lets you show disabled plugins on certain pages – not sure why that’s helpful?
Forum: Fixing WordPress
In reply to: Remove plugin header code from specific page templatesForum: Fixing WordPress
In reply to: Calling “text link” widgets manuallyI should clarify – not a “text link” – but a text widget. I’m using all nine and would like to use them to add custom subnav to each “page” of the site via https://codex.www.ads-software.com/Conditional_Tags#Variable_Sidebar_Content
I’m creating this for a client so I want them to be able to update those whenever they want so I’m hoping I can hard code text widget into those areas.Forum: Fixing WordPress
In reply to: Different sidbar items per pageFound my solution:
https://codex.www.ads-software.com/Conditional_Tags#Variable_Sidebar_ContentI’d still like to be able to actually control the content from withing the admin area (so I don’t always have to edit the sidebar.php file when I want to make a change)