• Resolved gdolenc

    (@gdolenc)


    It looks like I have some problems with categories section.

    First of all, when I start adding new categories in the admin panel (Adverts/Categories), after entering name and slug and clicking Add new category, nothing happens. When I refresh the page, only then I can see that category was added to the list.

    Second, when clicking on category on the front-end from the list of categories in the sidebar, it doesn’t show me adverts with img within this category, but rather lists all the adverts in this category as text in a normal post with Continue reading… text at the end (different then in demo).

    On the Add new adwert page it looks like I have many styling issues (btw, in the admin section styling for adding new advert is perfect). Input boxes have labels ligned on the right instead on the left, width of input boxex is different, but the key problem is again again with categories. When I click the drop-down menu, the are all listed, but first one is ok, second one is has left indent, third one a larger left indent, etc. So ti all looks like first category is the main parent, which has one children, that has another children, etc.

    https://www.ads-software.com/plugins/wpadverts/

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter gdolenc

    (@gdolenc)

    I have managed to solve the last issue with styling. All I had to do was to add !important code in my custom style sheet:

    .adverts-form.adverts-form-aligned .adverts-control-group label {
        float: left !important;
    }
    Plugin Author Greg Winiarski

    (@gwin)

    1. I can’t really replicate it, but this is basically default code for adding categories in WordPress, so i am guessing you will have the same issue with adding normal categories?

    Also the category is inserted using AJAX so it is also possible there is some kind of conflict with some other plugin, you ca try to disable other plugins one by one and see if the problem goes away.

    2. I am not sure, can you paste here a link on screenshot so i can see how it looks?

    Thread Starter gdolenc

    (@gdolenc)

    Here is the link with the problem of clicking on category and what do you get:
    https://www.slotenis.si/oglasi/

    In the right sidebar click Loparji (1)

    And this is what you get:
    https://www.slotenis.si/advert-category/loparji/

    Strange???

    Thread Starter gdolenc

    (@gdolenc)

    Did you maybe found out what is the problem with category not showing adverts like in demo version?

    Plugin Author Greg Winiarski

    (@gwin)

    I am not really sure, does it help if you switch to some other theme? Maybe the problem is with the theme.

    What you can also try to do is create in your theme directory file taxonomy-advert_category.php and copy there content from archive.php or category.php or single.php.

    Thread Starter gdolenc

    (@gdolenc)

    I have tried your suggestion taxonomy-advert_category.php but no success.

    I have also tried to deactivate all other plugins, but still not working.

    Then I have tried to change the theme. I am using Woo Canvas theme, then I replaced with WP Twenty Fifteen and this one has no problems.

    So, it is a theme issue. What should I do? How can I find the error? Should I contact Woothemes about this issue or is there anyting else you can check?

    Plugin Author Greg Winiarski

    (@gwin)

    In WPAdverts there is following code that forces categories pages to use default ads page when on category page.

    add_action( 'init', 'adverts_init_frontend' );
    function adverts_init_frontend() {
        add_filter('template_include', 'adverts_template_include');
        add_filter('the_content', 'adverts_the_content');
        add_filter('posts_results', 'adverts_posts_results', 10, 2 );
    }
    
    function adverts_template_include( $template ) {
    
        if( is_tax( 'advert_category' ) ) {
            return @get_page_template();
        }
    
        return $template;
    }
    function adverts_posts_results( $posts, $query ) {
        if( $query->is_main_query() && $query->is_tax("advert_category") ) {
    
            $title = sprintf( __("Category: %s", "adverts"), $query->get_queried_object()->name );
    
            $post = get_post( adverts_config( 'config.ads_list_id' ) );
            $post->post_title = apply_filters( "adverts_category_the_title", $title);
    
            return array($post);
    
        } else {
            return $posts;
        }
    }
    function adverts_the_content($content) {
        global $wp_query;
    
        if (is_singular('advert') && in_the_loop() ) {
            ob_start();
            $post_id = get_the_ID();
            include ADVERTS_PATH . 'templates/single.php';
            $content = ob_get_clean();
        } elseif( is_tax( 'advert_category' ) && in_the_loop() ) {
            $content = shortcode_adverts_list(array(
                "category" => $wp_query->get_queried_object_id()
            ));
        }
    
        return $content;
    }

    You can ask WooThemes support about it.

    Thread Starter gdolenc

    (@gdolenc)

    This is the response from WooThemes:

    Unfortunately we don’t support 3rd party plugins, therefore I’m afraid we can’t help you with this one. I recommend to contact the author of the plugin, if you need assistance in this regard.

    Any chance you take a look at what might be a problem?

    Thanks.

    Plugin Author Greg Winiarski

    (@gwin)

    Hi, i am afraid that since this is a free plugin i cannot offer to troubleshoot individual sites, sorry.

    Thread Starter gdolenc

    (@gdolenc)

    Ok, understood. But there are two things. I am translating the plugin (for FREE) in Slovenian language, if this counts anything. If not, how much would it cost me that you would check it. I can pay you via paypal.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @gwin I’ve deleted your offer to login to your user’s site. I’m am 100% sure you mean well but please never ask for credentials on these forums.

    Now for the why: The internet is a wonderful place full of very nice people and a few very bad ones. I’m sure everyone here is very nice however, by giving some ones keys to your house you are trusting they wont steal anything. Likewise the person who takes the keys is now responsible for the house FOREVER.

    If something was to go wrong, then you the author may well legally become liable for damages, which they would not normally have been as their software is provided without warranty.

    Please be aware that repeatedly asking for credentials will result in us asking you to repeatedly stop before escalating up to the plugins team.

    Plugin Author Greg Winiarski

    (@gwin)

    @jdembowski, ok sorry i did not realize this was against the rules.

    Thread Starter gdolenc

    (@gdolenc)

    I have installed fully fresh WP and Woo Canvas theme instalation on my localhost to test the plugin compatibility with the theme. I have disabled all other plugins.

    The sidebar categories in the plugin are not working.

    Looks like the rules on this formun do not allow to exchange contact data. My question is, how can I contact you directly so that we can discuss how to solve this problem further, because I have no other idea about what I could try to make it working.

    Plugin Author Greg Winiarski

    (@gwin)

    Hmm, you can ask WooThemes support if its ok to email me a copy of Canvas theme (it should be as this themes are GPL i think), if it is please send me a download link using the contact form https://wpadverts.com/contact/.

    Plugin Author Greg Winiarski

    (@gwin)

    Have you send me a message using the form? If so then i didn’t receive anything, please try again or even better submit a message on FB https://www.facebook.com/wpadverts

    Also, please see my last message in this thread https://www.ads-software.com/support/topic/to-whom-it-might-concern?replies=6 it will require some PHP knowledge to implement in your theme (or rather in theme different than twentytwelve) but it should work for you as well.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Problems with categories’ is closed to new replies.