I want to add the latest news column to the wordpress toolbar.

Well, it depends on your theme.

If your theme has gadget features,

Just use gadgets in the background to add the latest articles directly to your sidebar.

If your theme doesn't support gadgets,

You can use the latest article code provided by Gaobo.

The code is as follows:

& ltul & gt

& lt? PHP query _ posts(' posts _ per _ page = 10 & amp; caller _ get _ posts = 1’); ? & gt

& lt? PHP while(have _ posts()):the _ post(); ? & gt

& lt Li>

& lta target = " _ blank " href = " & lt? PHP the _ permalink(); ? >

title = " & lt? PHP the _ title(); ? >class="title " >& lt? PHP the _ title(); ? & gt& lt/a & gt;

& lt/ Li>

& lt? php endwhileWP _ reset _ query(); ? & gt

& lt/ul & gt;

I hope I can help you.