#1 WordPress forum plugin created by gVectors Team

wpForo – WordPress Forum Plugin
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation

Forum

Home | Forum

wpDiscuz - WordPress Comment Plugin
  • Forums
  • Members
  • Recent Posts
Forums
Main Support Forums
How-to and Troubles...
Include topic title...
 
Share:
Share
Tweet
Share
Notifications
Clear all

[Solved] Include topic title in site page title

Page 1 / 2 Next
    Last Post
RSS

joekotvas
Posts: 14
 joekotvas
Topic starter
November 26, 2017 10:29 pm
(@joekotvas)
Active Member
Joined: 5 years ago

How can I get wpForo topic titles to show up in the page titles? Right now the page title is static, always displaying the same thing no matter what forum topic I am viewing.

I could update on the fly with JavaScript, but this does not help me for social sharing and SEO purposes.

 

Topic Tags
meta title
9 Replies
1 Reply
joekotvas
 joekotvas
(@joekotvas)
Joined: 5 years ago

Active Member
Posts: 14
November 26, 2017 11:07 pm
Reply tojoekotvasjoekotvas

Note: I see the page titles displaying correctly in this forum. Any ideas why they are not displaying correctly in mine?

https://compartelsp.com/foros/palabras/repeche/#post-18

Reply
Anonymous20
Posts: 1602
 Anonymous20
November 27, 2017 12:38 am
(@anonymous20)
Noble Member
Joined: 6 years ago

The title IS working well for me also.

You seem to have some conflict. Disable your plugins one by one and find the cause of it.

Or even enable WP DEBUG.LOG and check for possible errors.

Reply
joekotvas
Posts: 14
 joekotvas
Topic starter
November 27, 2017 2:52 am
(@joekotvas)
Active Member
Joined: 5 years ago

Hm... I'm thinking it may be a conflict with the Divi theme. Still digging, very frustrating.

Reply
joekotvas
Posts: 14
 joekotvas
Topic starter
November 27, 2017 3:21 am
(@joekotvas)
Active Member
Joined: 5 years ago

Ok, hacked it! 

To make this work on my site, I had to add the following line to my child theme's functions.php : 

 
add_filter( 'pre_get_document_title', 'wpforo_meta_wp_title', 100);

Note, this is taken and modified from line 625 of /wpforo/wpf-includes/wpf-hooks.php. I just changed the filter from 'wp_title' to 'pre_get_document_title'.

 

Reply
Adrien and Robert liked
1 Reply
CENTRAL4ALL
 CENTRAL4ALL
(@central4allgmail-com)
Joined: 4 years ago

Reputable Member
Posts: 447
January 15, 2020 9:02 am
Reply tojoekotvasjoekotvas
Posted by: @joekotvas

Ok, hacked it! 

To make this work on my site, I had to add the following line to my child theme's functions.php : 

 
add_filter( 'pre_get_document_title', 'wpforo_meta_wp_title', 100);

Note, this is taken and modified from line 625 of /wpforo/wpf-includes/wpf-hooks.php. I just changed the filter from 'wp_title' to 'pre_get_document_title'.

 

Can you tell us what to do , the exact steps ?

Jusr edit the line in /wpforo/wpf-includes/wpf-hooks.php

Or?

All Suggestions are welcome
https://adultforum.gr/

Reply
Robert
Posts: 8973
Robert - Twitter
 Robert
Admin
November 28, 2017 5:01 pm
(@robert)
Support Team
Joined: 6 years ago

Thank you for sharing this code.

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Reply
Page 1 / 2 Next
  All forum topics
  Previous Topic
Next Topic  
Related Topics
  • Editing page meta title tag - Filter? Method?
    4 months ago
  • Problem with WpForo
    1 year ago
  • How to Delete Category Name in Meta Title?
    1 year ago
  • Seo title problem
    2 years ago
  • Thread Titles too long for SEO.
    2 years ago
Topic Tags:  meta title (8),

Forum Search

Join Us!

Download wpForo plugin
on WordPress.org

wpForo Addons

wpforo-private-messages wpforo-advanced-attachments-128x128 wpforo-embeds-128x128 wpForo User Custom Fields addon wpForo – Blog Cross Posting addon wpForo Ads Manager wpForo – WooCommerce Memberships Integration wpForo Emoticons wpForo – Tenor GIFs Integration
View all Addons »

Recent Topics

  • Can't change forum slug

    By popvlad82, 1 hour ago

  • Major bug occurring with @user mentions

    By Noved, 2 hours ago

  • Forum description

    By Vijiki, 21 hours ago

  • cant send public messages to friends

    By ReddBeard, 23 hours ago

  • Moderation Turned Completely Off...User's Posts Are Still "Awaiting Moderation"...

    By Noved, 1 day ago

  • Slight changes to my forum

    By marios, 2 days ago

Topic Tags

  • css50
  • translation49
  • plugin conflict48
  • seo45
  • new features44
  • buddypress42
  • moderation40
  • ultimate member40
  • avatar40
  • forum40
  • login38
  • registration36
  • threaded layout35
  • cache33
  • editor32
  • menu32
  • shortcode31
  • forum accesses30
  • spam29
  • phrases28
View all tags (2163)

Recent Posts

  • RE: Major bug occurring with @user mentions

    Please view the updated attached image below of another...

    By Noved, 43 mins ago

  • RE: Can't change forum slug

    There are two places for the slug. In wpForo AND mainly...

    By dimalifragis, 1 hour ago

  • RE: Moderation Turned Completely Off...User's Posts Are Still "Awaiting Moderation"...

    @robert Ok thank you!

    By Noved, 2 hours ago

  • RE: wpForo 2 Major Update is Imminent!

    @dimalifragis, It depends on the beta version. We are...

    By Robert, 6 hours ago

  • RE: How to schedule a topic?

    Hi @joselito, I'm sorry, but this will not be availab...

    By Robert, 8 hours ago

  • RE: cant send public messages to friends

    @reddbeard, about Buddy Press Public Messages, you sh...

    By Chris, 11 hours ago

  • RE: Forum description

    @vijiki, Use Custom CSS to hide it on the page.

    By Chris, 11 hours ago

Share:
Share
Tweet
Share
  Forum Statistics
20 Forums
9,773 Topics
49.5 K Posts
6 Online
44.5 K Members

Latest Post: Major bug occurring with @user mentions Our newest member: 6 Strategies To Accelerate Red... Recent Posts Unread Posts Tags

Forum Icons: Forum contains no unread posts Forum contains unread posts

Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Powered by wpForo | Copyright © 2016-2022 gVectors Team
Copyright Registration Service - Click here for more information or to register work
wpForo is Registered with the IP Rights Office
Copyright Registration Service

Ref: 4477265538
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation