Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SOLVED Plugin dev. routing
#20
(2016-09-07, 06:03:02)Bigin Wrote: Are you use get_page_content(); in your theme?

Yep ; )

Ok guys I made a fresh install and the solution of Bigin works there. Probably too much plugins added/removed on my local version
here is the final code 
route : galleries/([a-z0-9-/]+)
action : 

PHP Code:
<?php

return array( 'title' => 'My Title '.$args[0], 
 
  'content' => function($slug) {
 
   get_page_slug(false);  (now if I comment this line it still work)
 
  echo 'This is my Gallery ' .$slug;

}); 

Thank you to both of you for your time and the sharing of your knowledge !
CTRL+Z / +Z on this forum will be apprecied
Reply


Messages In This Thread
Plugin dev. routing - by mica - 2016-09-06, 22:24:52
RE: Plugin dev. routing - by shawn_a - 2016-09-06, 23:48:31
RE: Plugin dev. routing - by mica - 2016-09-06, 23:59:46
RE: Plugin dev. routing - by shawn_a - 2016-09-07, 00:38:00
RE: Plugin dev. routing - by mica - 2016-09-07, 00:42:01
RE: Plugin dev. routing - by shawn_a - 2016-09-07, 01:09:59
RE: Plugin dev. routing - by mica - 2016-09-07, 03:29:33
RE: Plugin dev. routing - by shawn_a - 2016-09-07, 03:58:57
RE: Plugin dev. routing - by shawn_a - 2016-09-07, 04:11:57
RE: Plugin dev. routing - by Bigin - 2016-09-07, 04:22:53
RE: Plugin dev. routing - by mica - 2016-09-07, 05:06:49
RE: Plugin dev. routing - by shawn_a - 2016-09-07, 04:49:15
RE: Plugin dev. routing - by mica - 2016-09-07, 05:13:47
RE: Plugin dev. routing - by Bigin - 2016-09-07, 05:20:28
RE: Plugin dev. routing - by mica - 2016-09-07, 05:24:33
RE: Plugin dev. routing - by Bigin - 2016-09-07, 05:28:37
RE: Plugin dev. routing - by mica - 2016-09-07, 05:31:42
RE: Plugin dev. routing - by Bigin - 2016-09-07, 05:47:00
RE: Plugin dev. routing - by Bigin - 2016-09-07, 06:03:02
RE: Plugin dev. routing - by mica - 2016-09-07, 06:22:26
RE: Plugin dev. routing - by shawn_a - 2016-09-07, 07:04:57



Users browsing this thread: 2 Guest(s)