chupacabrot Posted January 24, 2014 Share Posted January 24, 2014 I realized that my previous question wasn't clear enough so i decided to open a new thread (hopefully the old one will be removed - sorry for inconvinience). Here's my question - I got an extern html form that passes a value to some php file that is called makelist.php - The makelist.php simply analyzes the data that was sent through the $_POST method and puts all the 'right' values in one string array that is called $arrinfo - Each value there is a simple html snippet like '<a href=http://www.mywebsite.com/tes2t>testing</a>' . Now, assuming that i have an existing wordpress page which is called 'test1' for example - How can i put -all- that links (snippets) that exist in $arrinfo into a new sub page which will be like www.mywebsite.com/test1/arrinfolinks/ ? Do i need to install any wordpress plugin that will allow me to insert PHP code within posts/pages? Or is there any way to do it externally out of my php code? I can definitely put my php files in the same directory that wordpress uses so i can use wp_insert_post() for example - but i just couldn't figure yet how to create a sub page and insert all $arrinfo's content into it so it will be shown as links and not plain text of html tags.. thanks in advance.. Link to comment https://forums.phpfreaks.com/topic/285643-inserting-array-to-a-sub-page-in-wordress/ Share on other sites More sharing options...
chupacabrot Posted January 24, 2014 Author Share Posted January 24, 2014 " Each value there is a simple html snippet like '<a href=http://www.mywebsite.com/tes2t>testing</a>' ." Means that $arrinfo[0] = '<a href=http://www.mywebsite.com/' . $test2[0] .'>this is value . $test[0] .'</a>' $arrinfo[1] = '<a href=http://www.mywebsite.com/' . $test2[1] .'>this is value . $test[1] .'</a>' $arrinfo[2] = '<a href=http://www.mywebsite.com/' . $test2[2] .'>this is value . $test[2] .'</a>' $arrinfo[3] = '<a href=http://www.mywebsite.com/' . $test2[3] .'>this is value . $test[3] .'</a>' and so on.. Link to comment https://forums.phpfreaks.com/topic/285643-inserting-array-to-a-sub-page-in-wordress/#findComment-1466413 Share on other sites More sharing options...
chupacabrot Posted January 26, 2014 Author Share Posted January 26, 2014 Is there any reason why my questions aren't being answered? Am I rephrasing them wrong or something?... At least give me some further notes so i'll get a bit more effective in this forum.. I don't really find it as a hard question - And i haven't found an answer anywhere online so it could be great of you guys to at least tell me why i'm being ignored... Link to comment https://forums.phpfreaks.com/topic/285643-inserting-array-to-a-sub-page-in-wordress/#findComment-1466584 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.