wyndom
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Adding Custom Header – index.php not recognizing is_page()I was able to get is_home() to work, but still that doesn’t explain why my index.php page / ‘blog’ ignores is_page(#).
Forum: Fixing WordPress
In reply to: Hacked redirect to unknown WP siteThis happened to me a week ago. It may or may not be the same exact thing but I was using 3.0.0 and a hacker added .htaccess files that were redirecting users to a different site. If you have FTP access you may want to look at the .htaccess files to see if there is code in there that would redirect users to another site.
Contact your host and get them to help sort this out.
Forum: Fixing WordPress
In reply to: Subscription based Premium content?Yes! That looks like exactly what I would need, thanks!
I had a similar problem with this plug-in. if you open up the simple-social.php file you can play around with what icons are inserted into by modifying this line of code (will probably be line 15)
if (!is_feed() && !is_page()) {
I added this:
if (!is_feed() && !is_page() && !in_category(array(4,5)) ){
It now excludes my custom posts located in categories 4 and 5
good luck
Forum: Fixing WordPress
In reply to: Style a Post's uploaded mediaThank you esmi, I was able to achieve what I wanted.
Here’s the code.
I’m using a WP_Query to grab all of the posts in a specific category. Then adding a secondary loop (thank you) to that to determine if there is an attachment, and if there is, what type of attachment it is by using get_post_mine_type. From there I’ll use that info to run specific CSS/HTML code to add styles to the resuls<?php $resources_list = new WP_Query('cat=4'); while ($resources_list->have_posts()) : $resources_list->the_post(); ?> <a>"><?php the_title(); ?></a> <?php the_content(); ?> <?php $args = array( 'post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' => $post->ID ); $attachments = get_posts($args); if ($attachments) { foreach ($attachments as $attachment) { if (get_post_mime_type($attachment->ID) == 'application/pdf') { // do PDF stuff } else if (get_post_mime_type($attachment->ID) == 'application/msword') { // do WORD stuff } else if (get_post_mime_type($attachment->ID) == 'application/vnd.ms-powerpoint') { // do PPT stuff } } } ?> <?php endwhile; ?>
Forum: Fixing WordPress
In reply to: Style a Post's uploaded mediaisn’t attachment.php a separate page? I want this to show up on the post’s page and in the loop.
Forum: Fixing WordPress
In reply to: Removing Posts from specific category in 2010 widgetsMy archive post counts are incorrect still, but I’ll probably just turn that off as its not really important for this site.
Forum: Fixing WordPress
In reply to: Removing Posts from specific category in 2010 widgetsThank you dskallman
I was able to remove the two categories I wanted hidden using simply-exclude, but that did not hide posts from those two categories that I also wanted hidden. So using simply-exclude along with https://www.ads-software.com/extend/plugins/mcatfilter/
I was able to hide the categories and the posts from all 2010 widgets.
thanks!Forum: Themes and Templates
In reply to: Twenty-Ten: add dividers to nav – like | this | exampleThat was my first approach, but I wasn’t happy that the divider also became part of the link. I added a custom link with no URL. I think as long as I’m able to tweak the css and disable the mouse-over effect that highlights the divider I’ll be happy with the result, despite the sort of hacked manner to achieve it.
Forum: Themes and Templates
In reply to: Twenty-Ten: add dividers to nav – like | this | exampleSo would I add the divider as a custom link?