[display-posts] shortcode bugged with special character title
-
my blog is https://acgoddity.wordpress.com/
it’s a chinese site but i suppose this wouldn’t be a problem.
my problem is that in the home(首页) page, i tried to use display-posts shortcode to list my posts under the category “胡说八道”, but it didn’t work as expected. (but i’ve figured out a work-around)the following line worked:
[display-posts category="胡说八道" posts_per_page="-1" include_date="true" order="ASC" date_format="(Y/m/d)"]but this line showed nothing:
[display-posts category="胡说八道" posts_per_page="-1" include_date="true" order="ASC" orderby="title" date_format="(Y/m/d)"]my guess is that this category currently contains only one post whose title begins with a chinese bracket character “【”, so that the sorting-by-title functionality breaks down.
hope you programmers can fix this bug
The blog I need help with is: (visible only to logged in users)
-
it’s stange that it works now…
what i did was just publishing a new post (in another category) (with the same leading character “【” in the title), making the previous post (which had not showed up) stop being the newest post
- The topic ‘[display-posts] shortcode bugged with special character title’ is closed to new replies.