Often have a WordPress newbie asks magazine class (CMS) topic Home thumbnail and slide show how to display a picture, write a simple tutorial base today, some magazines may on the theme will be special, follow-up also will write a topic specific use tutorial, see everyone’s needs.
Talk about slideshow plugin Featured Content Gallery first short (FCG).
The plugin in many CMS theme has its shadow, the effect is very cool, generally areplaced in the Home of the top, to use the plug-in to be joined in the appropriate location code:
<?php include (ABSPATH . ‘/wp-content/plugins/featured-content-gallery/gallery.php’); ?>
When editing articles in the following in the custom field, add to the left of “articleimg”, you upload the image on the right side, then on the left to add “featuredtext”enter the picture to the right shows. If you want to display a specific category of articles, you need to create a new English name (does not support Chinese) categories,and then displayed in the slide preparation of articles added to the English name of the category, last entered in the FCG settings to display the English name of the category and to display the number of.
Others, such as: slide size, background color, border color, text height, changing transition effects and timing can be adjusted according to the actual set at the FCG.
Need to explain here, some have also added custom domain but can’t see the slideshow, because this plugin use, requiring two or more articles to add custom field “articleimg” and to set the appropriate height and width according to the theme, or may not display the slide.
FCG plug-in background settings options a lot, and I like E-bad friends can download Chinese version, overwrite the original plug-in file.
The second is a lot of magazine themes share the characteristics of the home page thumbnail settings.
Some themes have automatic interception of pictures, the general theme of this type of directory has a thumb.php function file, and the theme directory, including the name of “cache” picture cache folder, use this type of theme need to set the website space folder Read and write permissions to 777 or more, or may not automatically capture the picture.
Most magazine theme needs to manually add custom fields to achieve Home display thumbnails, custom domain name called: image, thumbnail, etc.
Add methods to look at the pictures:
Note: There may be some other topic is a special keyword name, then how to view and determine what is the custom domain name? This is not a difficult task, in addition to the theme of the website, view the use of help, you can also view the index.php file (some themes may also be in other files) to view the topic specific custom domain name, in which search search: $ Post-> ID, found, followed by the word is a specific custom domain name, such as: $ post-> ID, ‘thumbnail’, the “thumbnail” is a custom domain name, simple bar.
In addition, using other magazine themes before, added a custom field name or thenew ready to use themes, customize your domain name into the custom field name,so you don’t need to add a new custom domain name.
Third is the Home article truncation problem.
Some topics may have the function of automatically truncated by the character article (this feature on Chinese character truncation effects are not very good), or by similar Chinese Toolbox plugins truncated, but personally, I think it is to manually add “more”tag is the most convenient and flexible.
Add method: when editing an article, switch to the HTML mode, at the appropriate location by adding “more” tab.
Fourth is the category list settings.
Some topics Home displays a list of the category title, such subject matter in General, have similar query_posts (‘showposts=4&cat=66 ‘) or WP_Query (“cat=66&showposts=4&offset=1 ‘) code, the number” 4 “is to display the articles,” 66 “is the category ID of” 1 “is the latest 1 article does not display the classification, Backstage view to display the category ID in the categories, will figure into what you want displayedin the can. May also call other code, but have similar codes in the index.php file, modify the appropriate digital Basic is OK.
Wrote this first before thinking of anything or you have any questions you can ask for, I would like to add content.