WordPress.org

Forums

Comic Easel
[resolved] Function Weirdness? (6 posts)

  1. Dragonmun
    Member
    Posted 2 years ago #

    I started off with Easel and a child theme for my website a few years back and while I liked it, I wanted more control over the theme itself.

    When Comic Easel (the plugin) was announced, I was rather excited and downloaded/installed it... which worked about as expected, but came with a unique problem that is preventing me from using it at all.

    I use Market Press light to run my storefront and well... when I have Comic Easel activated, it prevents the store from listing the products on category pages.

    Because this is kind of hard to explain, I created a video showing what it's doing: http://livestre.am/48eOg (I apologize for the advertisements. It was just easier to use livesteam to record everything).

    As I state a couple of times in the video, I don't really know what's affecting what. I tried debugging it some myself, but I can't pinpoint any calls to the same function or anything like that.

    Since you wrote the code, I would assume you have a better idea than I do and would like to know what's up. :)

    http://wordpress.org/extend/plugins/comic-easel/

  2. Frumph
    Member
    Plugin Author

    Posted 2 years ago #

    Watching video, I do have forums at http://forum.frumph.net/

    ;)

  3. Frumph
    Member
    Plugin Author

    Posted 2 years ago #

    I believe I know what this is,

    How well can you handle editing some .php files to test?

    Edit the file wp-content/plugins/comic-easel/functions/filters.php

    At the top of the file you will see this:

    add_filter('request', 'ceo_rss_request'); // Add comics to the main RSS
    add_filter('the_content_feed','ceo_insert_comic_into_feed'); // Insert the comic image into the rss
    add_filter('the_excerpt_rss','ceo_insert_comic_into_feed');
    add_filter('the_content', 'ceo_insert_comic_into_archive'); // Insert the comic into the archive and search pages
    add_filter('the_excerpt', 'ceo_insert_comic_into_archive');
    add_filter('previous_post_rel_link', 'ceo_change_prev_rel_link_two', $link); // change the rel links for comic pages
    add_filter('next_post_rel_link', 'ceo_change_next_rel_link_two', $link);
    add_filter('pre_get_posts', 'ceo_query_post_type');
    add_filter('body_class', 'ceo_body_class');
    add_filter('get_terms_args', 'ceo_chapters_find_menu_orderby');
    // add_filter('get_lastpostmodified', 'ceo_lastpostmodified');

    What I want you to do is add a // in front of the add_filter for the pre_get_posts so it looks like this:

    add_filter('request', 'ceo_rss_request'); // Add comics to the main RSS
    add_filter('the_content_feed','ceo_insert_comic_into_feed'); // Insert the comic image into the rss
    add_filter('the_excerpt_rss','ceo_insert_comic_into_feed');
    add_filter('the_content', 'ceo_insert_comic_into_archive'); // Insert the comic into the archive and search pages
    add_filter('the_excerpt', 'ceo_insert_comic_into_archive');
    add_filter('previous_post_rel_link', 'ceo_change_prev_rel_link_two', $link); // change the rel links for comic pages
    add_filter('next_post_rel_link', 'ceo_change_next_rel_link_two', $link);
    // add_filter('pre_get_posts', 'ceo_query_post_type');
    add_filter('body_class', 'ceo_body_class');
    add_filter('get_terms_args', 'ceo_chapters_find_menu_orderby');
    // add_filter('get_lastpostmodified', 'ceo_lastpostmodified');

    What that will do is disable the filter that I created for the pre_get_posts, it will stop the archive from working for comic easel yeah but at least we can check if that's the function that is causing the issue.

    Make sure you clear cache and all that of course.

    - Phil

  4. Frumph
    Member
    Plugin Author

    Posted 2 years ago #

    Okay nevermind all that above.

    I found out the issue ;)

    It's actually Marketpress after all, but no worries it's a very easy fix.

    I posted it here: http://wordpress.org/support/topic/plugin-marketpress-wordpress-ecommerce-bug-report-marketpress?replies=1#post-3167094

    Basically the marketpress plugin isn't setting the is_post_type_archive boolean to true so the 'archive' for Easel isn't allowing multiple components to utilize it.

  5. Dragonmun
    Member
    Posted 2 years ago #

    I never got a chance to reply to this until now, but that totally corrected the issue
    Thank you so much for the help! :D

  6. Frumph
    Member
    Plugin Author

    Posted 2 years ago #

    Thank you for pointing me towards the Marketplace plugin, <3 it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic