Forum Replies Created
-
great
ok, suggest you go into these in the backend and resave them
just remove the code
and refresh your browser
ok, so not the way to go.
Let me have a think
thanks, ok lets try this
add_filter( 'wpseo_title', 'rew_meta_title' ); function rew_meta_title( $title ) { global $post ; if ($post->post_type == 'reply' ) { $title = 'this is a reply' ; } return $title; }thanks – just to ask the obvious, you are running the yoast plugin ?? 🙂
then as a test can you try a correction to my previous code
add_filter( 'wpseo_metatitle', 'rew_meta_title' ); function rew_meta_title( $title ) { global $post ; if ($post->post_type == 'reply' ) { $title = 'this is a reply' ; } return $title; }if that fails, can you try (as a test only)
add_filter( 'wpseo_metatitle', 'rew_meta_title' ); function rew_meta_title( $title ) { $title = 'this is a reply' ; return $title; }This should put that phase at the top of every pages, and will at least show that the filter is working.
ok, can I ask again
so how would I know from the link whether it is working – what am I looking for ?
In reply to: first reply stickygreat – glad you are fixed
In reply to: How To Turn off Link Button in ForumSorry I’m just a bbpress user who helps out here. I don’t have time to research every part of code – the answer is no doubt yes.
In reply to: [bbp-topic-form] too wide when not logged in.link to an example on your site please
I don’t have any sites with both yoast and forums on them (my forum sites are profession related sites with private forums so don’t want to advertise!).
So I don’t know which part of the code is faulty.
If you are able to test, then start with
add_filter( 'wpseo_metatitle', 'rew_meta_title' ); function rew_meta_title( $title ) { if ($post->post_type == 'reply' ) { $title = 'this is a reply' ; } return $title; }this should make the title of each reply ‘this is a reply’
if that works, then we kwow the function is working, but not getting the right answer !
If it doesn’t work, then I’ll come back with another
post type reply is definately bbpress.
so how would I know from the link whether it is working – what am I looking for ?
In reply to: first reply stickyI think this is what you are after
Put this in your child theme’s function file – or use
ah, I understand, sorry not really into SEO
try this
add_filter( 'wpseo_metatitle', 'rew_meta_title' ); function rew_meta_title( $title ) { global $post; if ($post->post_type == 'reply' ) { $order = $post->menu_order ; $post_parent = $post->post_parent ; $topic_title = get_the_title ($post_parent) ; $title = $topic_title.' '.$order ; } return $title; }In reply to: Load scripts when using shortcodeyou could just enqueue it
bbp_enqueue_script( bbpress-editor-always, 'js/editor.js', array( 'jquery' ), '2.6.4', true );thanks for the update, and yes please come back if you get any further
thanks – I’m just a user who helps out here, not a bbpress author.
so
1. can you confirm that the above plugin is not necessary – bbpress already does this ?
2.
can you try this code
add_filter( 'wpseo_metadesc', 'rew_meta_desc' ); function rew_meta_desc( $content ) { global $post; if ($post->post_type == 'reply' ) { $order = $post->menu_order ; $post_parent = $post->post_parent ; $title = get_the_title ($post_parent) ; $content = $title.' '.$order ; } return $content; }Put this in your child theme’s function file – or use
In reply to: [bbp-topic-form] too wide when not logged in.theme specific, bbpress just uses the width your theme gives it.
In reply to: How To Turn off Link Button in Forumput this is the custom css part of your theme
#qt_bbp_reply_content_link { display : none ; }In reply to: “No Topics” issue on forum pageif you have style pack installed, can you enable
dashboard>settings>bbp style pack>bug fixes>fix Last Active Time
and let us know whether this makes a difference
this code is from a bbpress convertor – no idea why it is running.
suggest you delete the user and recreate them
In reply to: Wrong Post Numberbbpress is just a custom post type, so in the database entry 2448 just happens to be a topic, 2447 could be a WordPress post, a wordpress page, a revision or another custom post type.
They’re all just database numbers
In reply to: Wrong Post Numbersorry I don’t understand the question?
In reply to: How to paste text to discussion forumyou could enable the visual editor
either
or
once activated go to
dashboard>settings>bbp style pack>Topic/Reply Form