279 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Netherlands
  • Referred between 10 and 49 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 10 000 and 50 000 dollars
FonZ says

I’ve created a horizontal Flash menu to work with the list_pages() function. To get it to work, I re-wrote a part of the classes.php, but I’ve got a feeling there is a better way. I’ve been looking at the WP docs and on google, but I can’t seem to find the pointer I need.

PHP is no problem, I just need to know where to put it and how to go about implementing it, without distorting the original files. A link or something on the subject would be appreciated!

Regards, FonZ

ps. I also posted this on FlashDen, but my guess is, the real WP coders are overhere..

164 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 10 and 49 users
  • Sold between 50 000 and 100 000 dollars
  • Won a Competition
tonyc says

You need to use the “&echo=0” setting on the wp_list_pages(); function. It would allow you to alter the output of the function without changing the core files. Disabling the “echo” parameter will give you a string which you can manipulate to accommodate to your needs.

171 posts
  • Sold between 10 000 and 50 000 dollars
  • Referred between 100 and 199 users
  • Bought between 100 and 499 items
  • Has been a member for 5-6 years
  • Exclusive Author
  • United States
clarklab says

^Yea that sounds about right.

Editing core files is always a hassle. If its for a template then you need to tell everyone installing it to edit their core. And even if its for your own site the changes will get reverted every time you upgrade WordPress.

279 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Netherlands
  • Referred between 10 and 49 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 10 000 and 50 000 dollars
FonZ says

Thanks!

I haven’t been able to poke around with it, but I will give it a try. When done, I’ll let you guys know.

Idd. the idea is to keep the core un-editted for future use.

Regards, FonZ

279 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Netherlands
  • Referred between 10 and 49 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 10 000 and 50 000 dollars
FonZ says

Okay, been fiddling a little. With the echo to false I can manage, but I was more looking for a way to override that piece of core code to be honest. Does that exist?

If not, ah well, stick to the good old splitting stuff..

by
by
by
by
by
by