{"id":1908780,"date":"2011-02-10T15:47:03","date_gmt":"2011-02-10T15:47:03","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/custom-plugin-not-working\/"},"modified":"2016-08-19T22:30:21","modified_gmt":"2016-08-19T22:30:21","slug":"custom-plugin-not-working","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/custom-plugin-not-working\/","title":{"rendered":"Custom Plugin Not Working"},"content":{"rendered":"<p>I have created a custom plugin called &#8220;HomeRotateText&#8221; and I was successfuly able to activate it.  I then opened an existing page  called &#8220;test&#8221; and added the following code:<\/p>\n<p>&lt;?php<br \/>\nHomeRotateText();<br \/>\n?&gt;<\/p>\n<p>When the test page displays it shows up the following text:<br \/>\nHomeRotateText();<br \/>\n?&gt;<\/p>\n<p>What have I done wrong? The contents of my file HomeRotateText is:<\/p>\n<p>&lt;?php<\/p>\n<p>\/*<br \/>\nPlugin Name: HomeRotateText<br \/>\nPlugin URI:  www.bserv.com<br \/>\nDescription: Displays Random Text on Home Page.<br \/>\nVersion:     1.0<br \/>\nAuthor:      BNS<br \/>\nLicense:     GPL1<br \/>\n*\/<\/p>\n<p>function HomeRotateText()<br \/>\n{<br \/>\n    echo &#8220;ROTATING TEXT&#8221;;<br \/>\n}<br \/>\n?&gt;<\/p>\n","protected":false},"template":"","class_list":["post-1908780","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/1908780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/1908780\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=1908780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}