Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

[Closed] My sitemap is showing 0 posts on my forum, how do i fix this?

14 Posts
2 Users
2 Reactions
514 Views
Posts: 15
Topic starter
(@rocodeify)
Eminent Member
Joined: 2 years ago

My sitemap is showing 0 posts on my forum, how do i fix this?

13 Replies
dimalifragis
Posts: 2601
(@dimalifragis)
Famed Member
Joined: 5 years ago

The sitemap is created by All in One seo (it shouldn't) and not from wpForo. Disable all in on seo and check again.

3 Replies
(@rocodeify)
Joined: 2 years ago

Eminent Member
Posts: 15

@dimalifragis Thanks, it worked but is there any way I can exclude wpforo sitemap on All in One Seo apart from deactivating it entirely

dimalifragis
(@dimalifragis)
Joined: 5 years ago

Famed Member
Posts: 2601

Posted by: @rocodeify

@dimalifragis Thanks, it worked but is there any way I can exclude wpforo sitemap on All in One Seo apart from deactivating it entirely

 

No way. I would recommend to use SEO Framework instead, that works with wpForo.

Or if you do not like Seo Framework, use YOAST.

 

(@rocodeify)
Joined: 2 years ago

Eminent Member
Posts: 15

@dimalifragis okay, thanks very much

 

dimalifragis
Posts: 2601
(@dimalifragis)
Famed Member
Joined: 5 years ago

Also W3TC db caching may create issues. Why use such a heavy and unstable plugin as W3TC?

4 Replies
(@rocodeify)
Joined: 2 years ago

Eminent Member
Posts: 15

@dimalifragis Thanks for your review, which do you recommend, please apart from W3TC

dimalifragis
(@dimalifragis)
Joined: 5 years ago

Famed Member
Posts: 2601

Posted by: @rocodeify

@dimalifragis Thanks for your review, which do you recommend, please apart from W3TC

I would recommend Fastest Cache or Automaticc's WP Super Cache. Whatever works for you.

And still, exclude wpForo from them.

 

(@rocodeify)
Joined: 2 years ago

Eminent Member
Posts: 15

@dimalifragis Okay, thanks very much

(@rocodeify)
Joined: 2 years ago

Eminent Member
Posts: 15

@dimalifragis please on my wpforo, i want images to show up when uploaded instead of link.. how can I go about it please

dimalifragis
Posts: 2601
(@dimalifragis)
Famed Member
Joined: 5 years ago

Let me try again.

Use this plugin

https://wordpress.org/plugins/code-snippets/

to add this small code:

 

add_filter('wpforo_content_after', function( $content ){
    return preg_replace_callback(
'#<a[^><]*\sclass=[\'\"](?:[^\'\"]*\s)?wpforo-default-attachment(?:\s[^\'\"]*)?[\'\"][^><]*\shref=[\'\"]([^\"\']+)[\'\"][^><]*>.*?</a>#isu',
        function( $match ){
                $html     = $match[0];
            $file     = $match[1];
            $pathinfo = pathinfo( $file );
            if( wpforo_is_image($pathinfo['extension']) ) {
                $html = sprintf(
                    '<a href="%1$s" target="_blank"><img class="wpforo-default-image-attachment" src="%1$s" alt="%2$s" title="%2$s"></a>',
                    esc_url($file),
                    esc_attr($pathinfo['basename'])
                );
            }
            return $html;
        },
        $content
    );
}, 11);
2 Replies
(@rocodeify)
Joined: 2 years ago

Eminent Member
Posts: 15

@dimalifragis okay, thanks very much... I really appreciate. will check it out now

dimalifragis
(@dimalifragis)
Joined: 5 years ago

Famed Member
Posts: 2601

@rocodeify Let us know if it works for you 🙂

Posts: 15
Topic starter
(@rocodeify)
Eminent Member
Joined: 2 years ago

It worked, thanks very much