Skip to content
WJunction - Webmaster Forum

Removing Category From Topic Title

Status
Not open for further replies.

X-Name

Established Member
297
2013
175
Hello,

I want to remove forum name from topic title in meta.For example if a topic is in "Wordpress" category will have the name "Best Wordpress Themes - Wordpress".

This is the code im using right now:
Code:
$extra_title = ($start > 0) ? ' - ' . $user->lang['Page'] . ( floor( ($start / $config['posts_per_page']) ) + 1 ) : '';
page_header($topic_data['topic_title'] . ' : ' .  $topic_data['forum_name'] . $extra_title);

I know that this code is the problem : ' . $topic_data['forum_name'] but i can't remove it without errors.


Tried also:
Code:
page_header($topic_data['topic_title']);

but will not display the page number if the topic has more pages (Topic Name - Page X)

Any help will be appreciated.
Thanks.
 
Status
Not open for further replies.

About the author

X
Established Member · Joined
297
Messages
175
Reactions
43
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom