Method for removing the article title of keywords keyword in destoon information content page
- 2021-07-16 01:57:20
- OfStack
This paper describes the method of removing the article title of keywords keyword in destoon information content page. The specific implementation method is as follows:
Find it in approximately 158 lines in the file article. class. php under the\ module\ article directory:
$keyword = $item['title'].','.($item['tag'] ? str_replace(' ', ',', trim($item['tag'])).',' : '').strip_tags(cat_pos(get_cat($item['catid']), ','));
Replace with the following:
$keyword = str_replace(' ', ',', trim($item['tag']));
That's enough.
I hope the method described in this paper is helpful to the development of destoon.