Help required for description for custom post types | Configuring All in One SEO Pack Pro | Support | Semper Plugins

Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





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

sp_Feed Topic RSS sp_TopicIcon
Help required for description for custom post types
April 26, 2013
9:40 am
Avatar
payments
Member
Guests
Forum Posts: 6
Member Since:
April 26, 2013
sp_UserOfflineSmall Offline

Hi

I am running a dictionary site (www.accountingdictionary.org) and require a little help configuring the SEO plugin as I am using custom post types.

Basically 99% of the site is terms and definitions and uses the post type of ‘dictionary’.

Under ‘Custom Post Type Settings’ I have set the title to be ‘%post_title% definition | %blog_title%’ and this working correctly on all the relevant pages (over 4,000).

What I am struggling to do is to achieve the description. When I search Google using site:accountingdictionary.org the results for terms seem to vary – possibly because they where indexed at different times but it concerns me that some do not show what I want them to.

For example, for the term ‘abandonment’ Google gives the description of:
Definition: an act of giving up voluntarily something that you own, such as an option or the right to a property. « ab initio · abatement » …

which when you look at the actual page (http://accountingdictionary.or…..andonment/) is ok although I would prefer it not include the previous term ‘ab initio’.

But for the term ‘XRBL’ (currently on page 4 of the results) Google gives the description of:
Apr 16, 2013 – If you would like to add to or refine this definition and receive an acknowledgement (and a link to your site or blog) please complete the …

Not what I want!

I would appreciate some advice as to why there are differences and which is the one which Google will be moving to if all links where updated?

Now, is it better for me to ‘fix’ the description?

I tried to do this by in ‘Advanced Settings’ clicking the ‘Autogenerate Descriptions’ box.

Now this appeared to work when I looked at the dictionary entries for words that had no related entries – it simply picked the post content. However, if a word has a related entry it is forming the description from the related entry.

Let me try and explain!
If you take for example ‘abandonment’ it has no related entry (see http://accountingdictionary.or…..andonment/) and the description under the preview snippet was shown as:
an act of giving up voluntarily something that you own, such as an option or the right to a property.

which is fine.

Whereas ‘XRBL’ is an abbreviation and therefore has a related entry to its full name (see http://accountingdictionary.or…..nary/xbrl/)
The plugin is generating the description from the page of the related entry i.e. from http://accountingdictionary.or…..-language/ and showing under the preview snippet:
Definition:computer language used for financial reporting that allows companies to exchange or publish financial information through the internet….

That is not what I want!

The question is how do I ensure that the description shown in Google is (using ‘abandonment’ as an example):

Preferably:
an act of giving up voluntarily something that you own, such as an option or the right to a property.

or at worst

Definition: an act of giving up voluntarily something that you own, such as an option or the right to a property. « ab initio · abatement » …

I hope this is clear – unfortunately custom post types are new to me.

Many thanks
Mark

PS – I using WP 3.5.1

April 26, 2013
10:11 am
Avatar
Peter Baylies
Admin
Forum Posts: 578
Member Since:
October 16, 2011
sp_UserOfflineSmall Offline

** You currently do not have permission to see this post. To obtain access to these Premium Support Forums, please purchase a plugin and support subscription from Semper Plugins **

April 26, 2013
10:50 am
Avatar
payments
Member
Guests
Forum Posts: 6
Member Since:
April 26, 2013
sp_UserOfflineSmall Offline

Hello Peter

Thank you for your reply.

I have just checked and the ‘content’ or ‘definition’ is contained within wp_posts and post_content so I am guessing custom fields are not being used to store the definition.

If I didn’t have too many definitions I would contemplate manually setting each description but with over 4,000 it would be a very long job.

As mentioned in my previous post the autogenerate works apart from where the term has a related entry so I am guessing that must be to do with the way the autogenerate works?

Hooking into custom code – how would that work?

Many thanks
Mark

April 26, 2013
11:14 am
Avatar
Peter Baylies
Admin
Forum Posts: 578
Member Since:
October 16, 2011
sp_UserOfflineSmall Offline

** You currently do not have permission to see this post. To obtain access to these Premium Support Forums, please purchase a plugin and support subscription from Semper Plugins **

April 26, 2013
12:52 pm
Avatar
payments
Member
Guests
Forum Posts: 6
Member Since:
April 26, 2013
sp_UserOfflineSmall Offline

Thank you for this Peter.

Apologies for my ignorance but where do I place the above code and how do I call it or is there some documentation that I can read?
Is it possible to amend the code to only do this if the post_type is equal to ‘dictionary’ therefore ensuring that the description isn’t fixed for any other pages?
Will the new description show in the ‘preview snippet’ or will I check it by looking at the page source?

Just to explain, currently I have a new template set up for displaying the terms so for example the page showing the definition of abandonment (http://accountingdictionary.or…..andonment/) is picking up a new template called ‘single-dictionary’ rather than the original template which was ‘single-template’. Not sure if that is of any relevance.

Sorry for so many questions.

Thanks
Mark

April 26, 2013
4:12 pm
Avatar
payments
Member
Guests
Forum Posts: 6
Member Since:
April 26, 2013
sp_UserOfflineSmall Offline

Hi

I have had a play around but cannot get this to work – but this is probably due to my lack of knowledge.

Do I add the code that you gave into functions.php of my theme?

How and where from do I place the code to call it?

Thanks
Mark

April 26, 2013
4:17 pm
Avatar
Peter Baylies
Admin
Forum Posts: 578
Member Since:
October 16, 2011
sp_UserOfflineSmall Offline

** You currently do not have permission to see this post. To obtain access to these Premium Support Forums, please purchase a plugin and support subscription from Semper Plugins **

April 26, 2013
4:33 pm
Avatar
payments
Member
Guests
Forum Posts: 6
Member Since:
April 26, 2013
sp_UserOfflineSmall Offline

Thank you – I have put the code from your second post into functions.php of my theme as the post type is named dictionary.

When I display one of the terms I can’t see any description appearing.

I guess this is what you are alluding to when you say ‘you’ll want to figure out how to display the specific description for your custom post type, as it looks like it’ll involve some custom parsing of the post data, or reimporting of definitions on your part’

As I am a complete novice at Wordpress when it comes to coding is there any documentation you could point me to so that I can achieve this?

Sorry to be a pain.

Mark

April 26, 2013
5:38 pm
Avatar
Peter Baylies
Admin
Forum Posts: 578
Member Since:
October 16, 2011
sp_UserOfflineSmall Offline

** You currently do not have permission to see this post. To obtain access to these Premium Support Forums, please purchase a plugin and support subscription from Semper Plugins **

April 26, 2013
5:52 pm
Avatar
payments
Member
Guests
Forum Posts: 6
Member Since:
April 26, 2013
sp_UserOfflineSmall Offline

Hi Peter

Stranger and stranger.

At first I thought I needed to have ‘Autogenerate descriptions’ switched on but doing this generated the same ‘preview snippets’ as before. However, when I checked the source of the actual page the description was different for those terms that had related entries. i.e. the actual description on the page picked up the correct description whilst the preview snippet didn’t. I guess in normal use the two should be the same but in this case, perhaps how the dictionary has been set up, they aren’t.

I then removed the additional code from functions.php and still got the same result – so it didn’t appear to work for some reason.

It may be easier for me to leave the autogenerate switched on and ignore the preview snippets which is a shame.

Thank you very much for your help and patience.

Regards
Mark

Forum Timezone: America/New_York

Most Users Ever Online: 964

Currently Online:
19 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 33

Members: 18371

Moderators: 0

Admins: 8

Forum Stats:

Groups: 4

Forums: 28

Topics: 1779

Posts: 7537

Newest Members:

mike marchand

Administrators: Michael TorbertPeter BayliesSupport TeamSteve MortiboyMatthew RobinsonSteve KlasenArnaud BroesAsh R

[i]
[i]
Skip to toolbar