이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

PostDivider

설명

Provides hooks that can be used within ‘The Loop’ to grab content from before and after the tag. If no MORE tag is provided, it will return the_excerpt() and the_content() respectively. You can also use a function to access all content, regardless of MORE tag.

Current version

Current version: 1.2

Revision History

0.1 – made within the functions.php file of the theme
0.5 – created the plugin, still required $post->post_content to be passed to functions
1.0 – removed $post->post_content to be passed in.
1.1 – fixed a bug that stopped the_content() from posting
1.2 – added function to get all post content, regardless of MORE tag

GPL

Copyright 2008 Corey Dutson (email : cdutson@wallofscribbles.com)

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

설치

  1. Upload PostDivider to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

Once that’s done, you can use the following hooks to display the content:
(Please note that these functions operate within ‘The Loop’)

Getting the text before the tag
* the_pre_more_text(); – this will display the text automatically.
* $content = get_the_pre_more_text(); – this stores the text within a variable.

Getting the text after the tag
* the_post_more_text(); – this will display the text automatically.
* $content = get_the_post_more_text(); – this stores the text within a variable.

Getting all of the text regardless of tag
* all_post_text(); – this will display the text automatically.
* $content = get_all_post_text(); – this stores the text within a variable.

FAQ

The pre more text is just displaying the excerpt, and the post more has all of the content including the excerpt! *What’s going on?*

If your post does not have a MORE tag used in it, the functions default to the normal WordPress functions; namely the_excerpt() and the_content()

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“PostDivider”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “PostDivider”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.