That is a bad solution, but that is the best solution I had now. Now, I manually write 301 Direct for all popular posts I have aware to the new url.
]]>For get the record set,
$drafts = $wpdb->get_results(
"
SELECT *
FROM $wpdb->posts
WHERE post_status = 'draft'
AND post_author =1
"
);
There are insert, update and delete method too.
Please read WordPress development documentation for the further information
I have upgraded this blog to b2evolution 6.7.7. I found that is great, the backend is more beautiful and clean too. I found the color scheme too. One thing is good to b2evolution comparing with other blog platforms; that is a very standalone platform which got most functions you need. If you just need it to do blogging, then that is perfect, you do not need to install a single plugin. But the downside, you cannot use it for another purpose. Well, I just need this blog to do blogging. That is good enough. By the way, I installed a responsive skin too. I found that is the best way to get more traffic. Now, Google will downgrade the ranking if any websites are not mobile friendly.
]]>Code
add_shortcode( 'list_products', 'list_products' ); | |
function list_products( $atts ) { | |
.... | |
} |