Paul Menard
Forum Replies Created
-
Forum: Plugins
In reply to: Media Tags Plugin – tags_compare Not Working?@lac582 – And the question back to you. Have you tried the ‘AND’ compare? And are you having issues?
Forum: Plugins
In reply to: Simply Exclude Eliminates Category List ContentStacey,
Great! Glad to hear we are at least making progress on your issues. Glad the list works. I think this might be something with Thesis. Though cannot prove it at the moment. Have had too much client work to fully investigate. Maybe some time over the long weekend. This was why I was asking you to switch to the WP default theme (TwentyTen). Sometimes themes do funny things to default widgets.
As for your other issues I didn’t know about that one. I’ll need to look into somehow excluding posts from the single post view. This was not part of the original scope of the plugin I developed. But it is a valid request. Thanks for brining it to my attention.
Forum: Plugins
In reply to: Simply Exclude Eliminates Category List ContentStacey,
I understand your statement about when you deactivate the SE plugin things display normally. I have a test environment setup on my end and the SE plugin works as expected. Without direct access to your site it’s very difficult to piece together how your site is different or what is going on. Thanks for the patience.
About my comment regarding not using dropdown. In the Category Widget there is a checkbox to display the categories as a dropdown or not. So I was wondering if you uncheck the checkbox are the sidebar results any different.
Actually let us take the sidebar widget out of the equation. As I mentioned in my previous post when I select a category from the dropdown (Articles) the browser URL first goes to something like https://www.virtuesforlife.com/?cat=3 then changes again to just https://www.virtuesforlife.com/category/ You are seeing the 404 error with the “You 404’d it. Gnarly, dude.” because in WordPress you are not allowed to surf to the top-level category URL. The URL should be contain the actual category slug like https://www.virtuesforlife.com/category/articles/ When I surf directly to the complete categories URL I get valid pages not 404.
So to me this is sort of perplexing. The Simply Exclude plugin doesn’t manage URL and permalinks and such. It’s simply a filter. When the browser requests a page the SE simply checks “is the user requesting the front page”, “An Archive”, “A Feed”, etc. Then for each of these sections I’m filtering the categories which should be displayed on those Home, Archive, Feed, etc pages.
I was not asking to make a permanent switch on the theme. I really just wanted to switch to the WP default theme, TwentyTen. Since that is the more baseline theme which almost all plugins are tested against. I own a copy of the Thesis theme (somewhere). Let me dig it up and see if I can run some tests with the SE plugin.
Forum: Plugins
In reply to: Simply Exclude Eliminates Category List ContentThe other possible area i would like to suggest is to switch to the default WP theme. See if the categories behave differently.
Forum: Plugins
In reply to: Simply Exclude Eliminates Category List ContentHi Stacey,
I hope we are getting close on this. I took a look at your site. I found the Category dropdown on the right sidebar marker ‘Topics’. When I select a category from the dropdown the browser URL changes to something like ‘https://www.virtuesforlife.com/?cat=6’ then after a few seconds the browser URL changes to ‘https://www.virtuesforlife.com/category/’ then I see the 404 error message. That message is from your theme. It’s the 404 message and no something from Simply Exclude. If you want to change t I would look for a file 404.php in your current active theme folder.But back to your issue. As far as I can tell the dropdown functionality is the standard WP category widget. Question back to you. If you don’t use the dropdown does it work any better?
Also you provided the information about the top of the Category admin page and which of the actions were set. But then you just mentioned you have 5 or so categories checked in the lower section. I would like to know exactly which categories you have set. From the category dropdown on your site I see 7 categories listed. So I would like to know which 2 categories are unset under Archive. When you click on an item in the dropdown you should be taken to that category’s archive page. I’ve tried all 7 categories and no luck on any of them.
To your question about the Simply Exclude interface and why have the top section and the lower section the answer is based on needed functionality. In the header section the user is allow to select between the two options ‘Include’ or ‘Exclude’. This action then effects the select categories in the lower section. For example when I originally wrote the plugin I was working on client site which had dozens or categories. But the client only wanted one or two categories to display on the blog front page. At that time I only had the lower category listing. When I would ‘exclude’ all but the two categories. Well the problem then is every time they add a new category to the system I had to login and exclude that category from showing on front page. Total pain. So I added the top section which lets me tell the plugin I only want to include the categories selected in the lower section. So now the client can add as many new categories as they want. But only the 2 I’ve set will be included. Hope that is clear.
Forum: Plugins
In reply to: Simply Exclude Eliminates Category List ContentOn the Simply Exclude ‘Exclude Categories’ admin page. You will find 4 sets of ‘include’ ‘exclude’ radio buttons at the top of the admin page. The Front, Archive, Search and Feed options should be obvious. For example the ‘Front’ means it will effect ‘include’ or ‘exclude’ these categories from the front page of your site.
The 5th option ‘Widget’ is new in SE 1.7.8 This option when set to ‘Yes’ will exclude the category from the default WP Categories Widget listing. So in other word let us assume you have a list of categories like cat1, cat2, … cat10. If you select cat7’s ‘Archive’ checkbox and also set the Widget radio to ‘Yes’ then you will not see ‘cat7’ in your sidebar Categories listing.
Hope that helps.
Though still not sure about the error message you reported.
Forum: Plugins
In reply to: Simply Exclude Eliminates Category List ContentStacey,
In your wp-admin under the Simply Exclude menu section. Select Exclude Categories and please tell me or provide an image of the options you have selected on that page. I really just need the header section so I can attempt to recreate the error on my dev site.
In you last replay I don’t understand your comment ” am trying to be selective in what categories I am sending out as a post.”
The Simply Exclude allows you to hide categories, tags, etc from various sections within WP. So when you select a category and select the ‘Exclude from Archive’ on that row you are telling the Simply Exclude plugin to hide posts in this category from the standard post archive pages. Same for Front, RSS and Search.
Forum: Plugins
In reply to: Simply Exclude Eliminates Category List ContentStacey,
What version of WP are you running? Was the exact message ‘Narly dude’? This is not from the Simply Exclude plugin. So bring up what other plugins are you running.
What exactly are you trying to accomplish with use of the Simply Exclude plugin? The Category Widget option is simply to filter the Category listing from the default WordPress Categories widget. It other widgets are used or it your theme for some reason is using it’s own categories widget then you might have a problem.
Best,
PaulForum: Plugins
In reply to: [Media Tags] [Plugin: Media Tags] checking to see whether image is taggedWell how about a has_mediatag function? Instead of all the call to wp_get_object_terms and in_array you can a) get the thumbnail ID then pass that Id into has_mediatag as the second argument. The first argument is the slug of the mediatag. In your case ‘colhead’ and then ‘fullhead’. You would of course need to call has_mediatag twice. Once or each mediatag you are searching.
Also a note this will be a function in the upcoming Media-Tags 3.0 release coming soon with a brand new Bulk admin interface. So it you use this function below name it something unique. Otherwise when the new version comes out you will get a conflict.
Cheers.P-
function printFeatureImage ($type='fullhead') { global $post; $tag_ids = array('fullhead'=>116,'colhead'=>117); // don't print a second feature image if ( $this->featureImagePrinted ) { return; } // is this a page with a feature image (post thumbnail)? if ( is_singular() && has_post_thumbnail( $post->ID ) ) { // is this feature image the right size (column head or feature head)? if ((my_has_mediatag('fullhead', get_post_thumbnail_id( $post->ID ))) || (my_has_mediatag('colhead', get_post_thumbnail_id( $post->ID ))) ) { echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' ); $this->featureImagePrinted = true; } } } function my_has_mediatag( $tag = '', $_post = null ) { if ( $_post ) { $_post = get_post( $_post ); } else { $_post =& $GLOBALS['post']; } if ( !$_post ) return false; $r = is_object_in_term( $_post->ID, MEDIA_TAGS_TAXONOMY, $tag ); if ( is_wp_error( $r ) ) return false; return $r; }
Forum: Plugins
In reply to: [Media Tags] [Plugin: Media Tags] Conditional TestingYou are very welcome. Thank you for using my Media-Tags plugin. One other note. I’m including the function has_mediatag into the upcoming 3.0 release of the plugin. So as not to conflict with your version in your theme’s functions.php can you give your local function a different name.
Forum: Plugins
In reply to: [Media Tags] [Plugin: Media Tags] Conditional Testingtriggame,
I was hoping WP core would come up with a generic function like has_tag which would work for other Taxonomies. Since Media-Tags uses the new Taxonomy system I’ve cloned the has_tag WP function to has_mediatag()
So instead of calling in_mediatag(‘choice’) use has-mediatag(‘choice’, $image->ID);
Note you do need to provided the second parameter since has_tag assumed you are working with the global $post object by default.
function has_mediatag( $tag = ”, $_post = null ) {
if ( $_post ) {
$_post = get_post( $_post );
}
else {
$_post =& $GLOBALS[‘post’];
}
if ( !$_post )
return false;$r = is_object_in_term( $_post->ID, MEDIA_TAGS_TAXONOMY, $tag );
if ( is_wp_error( $r ) )
return false;
return $r;
}Forum: Plugins
In reply to: How to use post_updated_messages?Check the Example at the bottom of the register_post_type Codex page. It provides a good example for the post type itself plus Messages and Help.
https://codex.www.ads-software.com/Function_Reference/register_post_type
Forum: Plugins
In reply to: [Simply Exclude] [Plugin: Simply Exclude] Category won't hide from front pageI guess the obvious questions are:
1. What category are you attempting to exclude from the from page?
2. Just to be clear when you say front page we should agree this is the main content area and not the sidebar categories?
3. In wp-admin on the Simply Exclude Category page what options exactly do you have checked or set?
4. Just to make sure what version of the plugin and WordPress are you running.
For the benefit of others can you reply back what version of WP you are using. Thanks.
Forum: Plugins
In reply to: Images not showing when moving categoryOk did some more research on this. From your site in the footer I saw you were using the Simply Red theme from ThemeLab. It’s free so I downloaded it and applied it to a local WP 3.0 site I’m working on. This site is NOT running the Simply Exclude plugin by the way.
I setup the sidebar widgets to include Categories, Tag Cloud and Archive. Just like your site I disabled permalinks. This will provide the nice URL like your example Resources page /?cat=5
I setup a Post. I added a sentence to the post body. I then added some images from my drive and inserted the default gallery shortcode ‘[gallery] below the simple sentence. I then added the Post to a dummy category. When I view the front end of the site the dummy category is listed in the sidebar.
When I click on the sidebar category link it take me to the category archive page. Normally this will be a listing of Posts in that category. In my case this just shows the one dummy post I’ve entered. You know what the gallery was not displayed. But if I click on the title of the post I’m taken to the single view page. Here the gallery does display.
My thoughts:
When viewing an archive (or even the home page) more themes call the WP theme function ‘the_excerpt()’. At one time this function called the PHP function strip_tags which removed all HTML from the content. I thought this was corrected to allow certain HTML codes.Back to your site:
If we go back to your Resources page https://blog.whenlovefalls.com/?cat=5 again your shortcode (I’m assuming it is there does not display. Also you noted the download link is not there ot is not a link anymore. This is typical of the PHP strip_tags() function the link/anchor text remains. At this point if you click on the title of the one post listed you will be taken to this page https://blog.whenlovefalls.com/?p=21 Here the image is displayed and the download link is working.So I guess the open issue is why is the WP function the_excerpt removing the shortcode the link html? Again, this was reproduced on a new WP 3.0 install and not running the expected culprit Simply Exclude plugin.