Forum Replies Created

Viewing 15 replies - 76 through 90 (of 357 total)
  • Plugin Author Paul Menard

    (@pmenard)

    @fusionblast,

    Ok. Let’s see if we can figure out the issue. It works best if you use a default theme at first. This helps to verify the Simply Exclude Settings. The reason for this is mainly to do with the custom theme as they tend to do extra queries.

    Basically, I want certain categories to not show up on the front page so I went into categories and check the appropriate category to checked for the Front/Home option and it still shows. Suggestions?

    Ok. So from your above comment I’m assuming you are showing posts on the front/home page? This is not the same as having a widget on your home page area which shows the last X number of posts. Please check your settings. Go to wp-admin > Settings > Reading. The first setting ‘Front page displays’ should be set to ‘Your latest posts’.

    Next, I need you to verify within the Simply Exclude setting you have the correct settings. Please go to wp-admin > Simply Exclude > Settings. In the ‘Categories’ section please check values for the settings. Please see this image showing the 3 settings to check. https://screencast.com/t/w00e3rGY

    Plugin Author Paul Menard

    (@pmenard)

    @betagoo,

    I’ll need to look into this. The Media-Tags listing (Media > Media Tags) is created within WordPress as part of the register_taxonomy function.

    Plugin Author Paul Menard

    (@pmenard)

    @john vivian,

    Sorry for my late replay (3 weeks). Did you come up with a solution?

    Some questions on your function. How are you querying the post(s)? Are you creating your own direct WP_Query instance?

    One thing you could try is to have Simply Exclude only filter on the main query. This would let you create your own WP_Query instances. What I mean by this is in a typical install the Simply Exclude plugin will only filter on the main home/archive/Feed/Search queries. Secondary queries used for widgets, menus, etc and custom functions like your own will not be filtered.

    Try going to Simply Exclude > Settings. Then scroll to the Taxonomy you are working with. For example post categories. Look for the section ‘Query Filtering’. https://screencast.com/t/Vjj2XzXbvx9W

    Let me know.

    Plugin Author Paul Menard

    (@pmenard)

    @kallym,

    That works fine on the archive page, but, when I go to the single posts, the next/previous links are linking to posts that are in excluded categories. Why is this happening?

    The Simply-Exclude plugin is not really designed to work on the single.php template. The plugin was designed to exclude category items from the archive, feed, home, etc. I’ll need to look at hooking into the WP logic which grabs the prev/next single items.

    Plugin Author Paul Menard

    (@pmenard)

    @asimoip,

    I’m not sure I follow your last reply “In the plugin settings default directories were open”. Can you please explain what you found if this is something within the Simply-Exclude plugin.

    Plugin Author Paul Menard

    (@pmenard)

    @eric,

    Well can you please give some clue as to how you are attempting to use the plugin. Providing ‘nothing works anymore’ is somewhat generic. I’ll be glad to assist in any way I can. But please provide as much details as possible. Thanks.

    Plugin Author Paul Menard

    (@pmenard)

    @nabha, @ashbydesign, @myrko, @xymox12,

    Thanks for your comments. I will look into these in the next few days.

    Plugin Author Paul Menard

    (@pmenard)

    @rescamilla,

    Ah. Sorry. I missed that closing <li> when I copied it. Thanks for catching that. Good luck.

    Plugin Author Paul Menard

    (@pmenard)

    @rescamilla,

    If you want to get the filename extension you can use the following line;

    $file_ext = pathinfo(basename(wp_get_attachment_url($post_item->ID)), PATHINFO_EXTENSION);

    To break this down for you here is an explanation of the parts.

    wp_get_attachment_url($post_item->ID) – This will get the URL to the file. Something like https://example.net/wp-content/uploads/filename.pdf

    Then the PHP function basename() is called to remove the path and return just the filename.

    Then the PHP function pathinfo() is called. We pass in the filename from the basename() function and the second parameter tells the function to just return the file extension.

    If I’m wrong in my assumption and you just want the filename extension shown for the filename as displayed via Media-Tags then you can simply modify the line in your output template function. As part of the wp_get_attachment_link() function you need to pass in the link text parameter. This is the 5th parameter of the function. See my code suggestion below.

    return ‘<li class=”media-tag-list” id=”media-tag-item-‘.$post_item->ID.'”>’. wp_get_attachment_link($post_item->ID, false, false, false, basename(wp_get_attachment_url($post_item->ID))) .”;

    Plugin Author Paul Menard

    (@pmenard)

    @rescamilla,

    There is not a default way to do this. But it is possible. As part of the shortcode you are using (or if you are using the template function it works the same) there is a default display function called ‘default_item_callback’ located in the mediatags_shortcodes.php file.

    You would need to copy this function and add it to your theme’s functions.php and change the name of the function to something else. The change the logic to display what you want.

    Then when you use the shortcode add the parameter ‘ display_item_callback=”your_function_name” ‘ where ‘your_function_name’ if your new function name.

    Plugin Author Paul Menard

    (@pmenard)

    @rescamilla,

    Great. Glad to see you got this figured out. Let me know if you run into any more issues or have other questions.

    Plugin Author Paul Menard

    (@pmenard)

    @eric,

    A couple if questions.

    1. How are you using Simply-Exclude? On your home/front page are you including/excluding certain post categories or tags?

    2. What theme are you using. The paging seems to work correctly when using the default WP theme (TwentyFourteen). Some themes like Thesis do not play well with Simply-Exclude. Mainly because it does direct queries.

    Let me know. Thanks.

    Plugin Author Paul Menard

    (@pmenard)

    Or could be related to how your theme works. The Simply-Exclude plugin filters the default WordPress queries. If you are using a theme such as Thesis where is re-queries all the page content thus throwing away the WordPress queries then you are out of luck.

    Plugin Author Paul Menard

    (@pmenard)

    @dave,

    Sorry for the delay. I didn’t see this thread. The front-page really has nothing to do with the RSS feed. They are two separate queries. I’ve not tested this but will give it a go this week.

    This could be something to do with your theme. Can you try switching to the default WordPress theme?

    Plugin Author Paul Menard

    (@pmenard)

    Released Simply-Exclude 2.0.6.2 should fix the reported warming.

Viewing 15 replies - 76 through 90 (of 357 total)