Wordpress queries and wikipedia

Fragment of a discussion from Project:Support desk
Jump to: navigation, search

I'm not going to write it for you. In the previous comments I explained how $intro would be defined (obviously it's not defined right now, that's up to you) where it reads " // Download $url and do your magic extraction".

Then in PHP (getWikiIntroParagraph) extract the first one (or two) <p>-tags. And with what you have left, use strip_tags() to get rid of other unwanted html code, and then you have an clear-text excerpt.

Krinkle17:03, 27 September 2011

I know, but I do need further explanation or better the parts I need to use for what is left to do. I am not into php so need to be pointed to each function or whatever I need to have, you know? I just know it is not defined but cannot think about a function or whatever to get what I want. Is $intro the only thing what's left? If so, what do I need to make run? If not, what else and what do I need? As I said I am not into php and need more info. Sorry.


//EDIT

I guess it's only $intro I need to define right now. Do I have to make it within function get WikiIntroParagraph or before / after that? As far as I understand this function extracts anything from the page. Do I have to use truncate to get a summary or is there something else I can use?

79.245.215.17603:36, 28 September 2011
 

I have tried something but doesn't function. Do have any idea(s)? http://pastebin.com/fkLBeViY

85.22.0.20909:51, 30 September 2011
 
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox