Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter chausme

    (@chausme)

    Thanks ??

    Alex

    Thread Starter chausme

    (@chausme)

    There is only one extra post in category with ID 4, I’ve just put another one into that category and it has been shown.

    Guess I was confused because my another website has posts in different categories, but all of them are being shown – posts with different terms, however it’s ok to show related posts strictly by current category.

    Thanks!

    Thread Starter chausme

    (@chausme)

    Hi keesiemeijer,

    None of the filters are being used, I’ve installed the plugin, here is debug information:

    *******************************************
    **                                       **
    **    Related Posts by Taxonomy Debug    **
    **                                       **
    *******************************************
    
    type:
    
    shortcode
    
    -------------------------------------------
    current post id:
    
    101
    
    -------------------------------------------
    taxonomies:
    
    'category', 'post_tag', 'post_format'
    
    -------------------------------------------
    shortcode args:
    
    Array
    (
        [post_id] =>
        [taxonomies] => all
        [before_shortcode] => 
    
        [after_shortcode] => 
    
        [before_title] => 
    
        [after_title] => 
    
        [title] => Related Posts
        [format] => links
        [image_size] => thumbnail
        [columns] => 3
        [caption] => post_title
        [post_types] =>
        [posts_per_page] => 5
        [order] => DESC
        [limit_posts] => -1
        [limit_year] =>
        [limit_month] =>
        [orderby] => post_date
        [exclude_terms] =>
        [include_terms] =>
        [exclude_posts] =>
        [related] =>
    )
    
    -------------------------------------------
    function args:
    
    Array
    (
        [post_types] => Array
            (
                [0] => post
            )
    
        [posts_per_page] => 5
        [order] => DESC
        [fields] =>
        [limit_posts] => -1
        [limit_year] =>
        [limit_month] =>
        [orderby] => post_date
        [exclude_terms] =>
        [include_terms] =>
        [exclude_posts] =>
        [post_thumbnail] =>
        [related] => 1
        [before_shortcode] => 
    
        [after_shortcode] => 
    
        [before_title] => (Debug Shortcode)
    
        [after_title] => 
    
        [title] => Related Posts
        [format] => links
        [image_size] => thumbnail
        [columns] => 3
        [caption] => post_title
        [type] => shortcode
    )
    
    -------------------------------------------
    terms found for current post:
    
    Array
    (
        [0] => 4
    )
    
    -------------------------------------------
    query:
    
    SELECT posts.* , count(distinct tr.term_taxonomy_id) as termcount FROM posts INNER JOIN term_relationships tr ON (posts.ID = tr.object_id) INNER JOIN term_taxonomy tt ON (tr.term_taxonomy_id = tt.term_taxonomy_id) WHERE post_type = 'post' AND (post_status = 'publish' OR post_status = 'private') AND posts.ID != 101 AND ( tt.term_id = 4 ) GROUP BY posts.ID HAVING SUM(CASE WHEN tt.term_id = 4 THEN 1 ELSE 0 END) > 0 ORDER BY posts.post_date DESC 
    
    -------------------------------------------
    related post ids found:
    
    Array
    (
        [0] => 90
    )
    
    -------------------------------------------
    requested template:
    
    related-posts-links.php

    Alex

    Thread Starter chausme

    (@chausme)

    Sounds good, thanks!

    Thread Starter chausme

    (@chausme)

    If you interested – I just noticed the issue, it was because of Hide shortcode button in WYSIWYG editor option, so it’s hiding EasyRecipe button as well.

    Tested on another website.

    Thread Starter chausme

    (@chausme)

    Thanks for reply!

    I’ve just tested it on another WordPress installation and it works. Guess there is something wrong with that particular website WordPress files.

    Alex

    Thread Starter chausme

    (@chausme)

    Thanks, please let me know if there is any solution

    Thread Starter chausme

    (@chausme)

    After I canceled it, it said:

    “Sorry, there has been an error.

    File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.”

    Uploads are enabled, Maximum size is 2 MB.

    Finally all posts were imported, but without attachmetns. It’s ok for me, but I hope this plugin become more stable in next releases.

Viewing 8 replies - 1 through 8 (of 8 total)