我有一个自定义的帖子类型,用于在客户端网站上显示属性。我正在按标题对帖子进行排序,但希望忽略该标题中包含的任何数字。
如何按第一个字母[A-Z]而不是[0-9,A-Z]对帖子进行排序?
这是我当前的循环:
<section id="grid" class="project clearfix">
<div class="wrapper">
<ul id="project" class="clearfix">
<?php
// select our project post types
$wptricckspost = array(
\'post_type\' => \'project\',
\'orderby\' => \'title\',
\'order\' => \'ASC\'
);
// Create the new loop
$loop = new WP_Query( $wptricckspost );
while ( $loop->have_posts() ) : $loop->the_post(); ?>
<li class="item">
<header>
<h2><?php the_title(); ?></h2>
</header>
<article>
<?php the_content();
// Other HTML stuff below...