A A A

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Custom META Description and Keywords not working
Jan 12, 2010
11:22 am
Member
Forum Posts: 8
Member Since:
Jan 12, 2010
Offline

I am trying to get the custom meta description (forum > components > extensions & extras > Meta Tags) to show up as well as the customer keywords and they are not.

I know it has something to do with my Wordpress header.php file but I am not sure what. My current settings are: Use Custom Meta Description on Main Forum Page Only and Use Forum Description on Forum and Topic Pages > IS CHECKED, Custom meta tag added > "Discussing University of Utah sports, athletes and a little smack!", and the Use Custom Keywords (entered below) on Forum Pages > IS CHECKED. 

I would like for custom description to show up on the main page, the forum description to show up when on a forum pages and the topic title to show up as the description on the topic pages.

Also need to know how to get the custom key words to show up – which they are currently not.

Here is the meta section from my header.php Wordpress file -

<title><?php if (is_home()): bloginfo('name'); print(" ("); bloginfo('description'); print(")"); elseif (is_category()): bloginfo('name'); print(": "); single_cat_title(); elseif (is_day() || is_month() || is_year()): bloginfo('name'); print(": "); the_time('F Y'); elseif (is_search()): bloginfo('name'); print(": Search Results"); elseif (is_page()): bloginfo('name'); print(": "); wp_title('',true,''); else: bloginfo('name'); print(": "); wp_title('',true,''); endif; ?></title>
<meta name="description" content="<?php if (have_posts()&& is_single()):while(have_posts()):the_post(); the_excerpt_rss(20,2); endwhile; elseif (is_category()): single_cat_title(); print(" category of "); bloginfo('name'); elseif (is_day() || is_month() || is_year()): the_time('F Y'); print(" archive of "); bloginfo('name'); else: bloginfo('description'); endif; ?>" />
<meta name="keywords" content="utah, utes, university, sports, football, basketball, baseball, gymnastics, soccer, softball, golf, ski, volleyball, track, field, swimming, diving<?php get_the_tag_list( $before = ',', $sep = ',', $after = '' ); ?>" />

 

Any help would be greatly appreciated!

Here is the website this script is on – http://www.utahutesgameday.com…..iscussion/

Jan 12, 2010
12:44 pm

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

are you using an seo plugin? looks like something is overwriting the description… note this code

<meta name="description" content="" />

and the same for keywords

<meta name="keywords" content="utah, utes, university, sports, football, basketball, baseball, gymnastics, soccer, softball, golf, ski, volleyball, track, field, swimming, diving" />

Jan 12, 2010
1:10 pm
Member
Forum Posts: 8
Member Since:
Jan 12, 2010
Offline

No SEO Plugins. Just the code you see in my header. What is the code that I need to put in the header.php file to pull the forum description and the topic title?

Jan 12, 2010
7:44 pm

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

nothing… you probably already have that in your header.php file… is that true? by hardcoding it, you are probably overwriting ours…

Jan 13, 2010
8:35 am
Member
Forum Posts: 8
Member Since:
Jan 12, 2010
Offline

This is all I have in the header.php file for meta data –

<title><?php if (is_home()): bloginfo('name'); print(" (");
bloginfo('description'); print(")"); elseif (is_category()):
bloginfo('name'); print(": "); single_cat_title(); elseif (is_day() ||
is_month() || is_year()): bloginfo('name'); print(": "); the_time('F
Y'); elseif (is_search()): bloginfo('name'); print(": Search Results");
elseif (is_page()): bloginfo('name'); print(": "); wp_title(",true,");
else: bloginfo('name'); print(": "); wp_title(",true,"); endif;
?></title>

<meta name="description" content="<?php if
(have_posts()&& is_single()):while(have_posts()):the_post();
the_excerpt_rss(20,2); endwhile; elseif (is_category()):
single_cat_title(); print(" category of "); bloginfo('name'); elseif
(is_day() || is_month() || is_year()): the_time('F Y'); print(" archive
of "); bloginfo('name'); else: bloginfo('description'); endif; ?>"
/>

<meta name="keywords" content="utah, utes, university, sports,
football, basketball, baseball, gymnastics, soccer, softball, golf,
ski, volleyball, track, field, swimming, diving<?php
get_the_tag_list( $before = ',', $sep = ',', $after = " ); ?>" />

 

As such, I see no variable that is replaced or used that will allow me to put in the forum's custom description, etc, etc. I don't know what else to do but to hard code it. Any help would be appreciated or if you could let me know what the code that I need to put in the header.php file to pull the forum description and the topic title?

Jan 13, 2010
2:03 pm

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

you are missing the point.  there is not variable or code to put in the header.  its done automatically.

EXCEPT you already have it hardcoded in the header…  this:

 

<meta name="description" content="<?php if

(have_posts()&& is_single()):while(have_posts()):the_post();

the_excerpt_rss(20,2); endwhile; elseif (is_category()):

single_cat_title(); print(" category of "); bloginfo('name'); elseif

(is_day() || is_month() || is_year()): the_time('F Y'); print(" archive

of "); bloginfo('name'); else: bloginfo('description'); endif; ?>"

/>

<meta name="keywords" content="utah, utes, university, sports,

football, basketball, baseball, gymnastics, soccer, softball, golf,

ski, volleyball, track, field, swimming, diving<?php

get_the_tag_list( $before = ',', $sep = ',', $after = " ); ?>" />

 

already hardcodes it in your header to something else…  and is likley overriding what we are outputting…

as a test, try removing those hardcoded lines from your header and see if the spf ones appear…

Jan 15, 2010
10:24 am
Member
Forum Posts: 8
Member Since:
Jan 12, 2010
Offline

That worked for the description but not for the keywords. Thanks for the clarification and help!

Jan 15, 2010
2:24 pm

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

so you removed the keywords from your header.php too?

what are the two keyword options settings on forum – components – extensions?

May 23, 2010
9:12 pm
Tobs
Guest

sorry for pulling out this old thread, but I would like to know how the forum here is configured to publish the meta description and meta keywords through All in one Seo. On my website both are missing, but I already installed All in one SEO.

May 23, 2010
9:17 pm

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

all in one seo is not needed… but we work with it…  you can set the forum seo options on forum – components – seo options…  of course that assumes 4.2.x and you posted that in the 4.1.x forum… so you might need to upgrade…

also make sure you havent overriden any forum options on the wp page itself in the aioseo meta box on the new/edit page panel…

Forum Timezone: America/Chicago

Most Users Ever Online: 444

Currently Online: Conrad_Farlow, steve.engelking, jawaulk, irlandes1, joelrob
78 Guest(s)

Currently Browsing this Page:
1 Guest(s)

See All Online Activity

Top Posters:

-Radio-: 1251

Lee H: 606

Luffer: 535

Conrad_Farlow: 502

jim: 478

neon: 263

ovizii: 240

Tal: 240

Member Stats:

Guest Posters: 2626

Members: 7363

Moderators: 1

Admins: 2

Forum Stats:

Groups: 5

Forums: 16

Topics: 10897

Posts: 79582

Moderators: Brandon C (162)

Administrators: Yellow Swordfish (22240), Mr Papa (23688)