480 reputation
21031
bio website
location
age
visits member for 2 years, 9 months
seen Dec 15 at 18:13

A Coder...


Sep
23
comment How to pass variable via $callback_args for add_meta_box
I tried to define the var first like what you said.But I still get the error.
Sep
23
comment How to pass variable via $callback_args for add_meta_box
What if the variable that I want to pass is in an array? like this foreach($options['rules'] as $v){add_meta_box( 'pluginid', __( 'my plugin', 'myplugin_textdomain' ),array($this,'render_content'),$v['cpt'], array($v['variable']));} ? This give me Illegal offset type. The options is stored in the wp_option table.
Sep
22
asked How to pass variable via $callback_args for add_meta_box
Sep
18
accepted How to limit user to publish post per day and per role?
Sep
14
comment settings api store multiple array
danbrown,I just got the time to revisit this issue (I was busy with something else). I can tell what your codes are trying to do, but now my major problem is not able to figure out how to write the action logic codes. Can you show me how you write the Add,Edit,Delete logic codes? Thanks
Aug
28
comment Pagination only won't work in author template
Okay...figured it out. Turn out I need to add $query-> to is_author and is_main_query. and return to $query. Anyway, thanks again @Milo.
Aug
28
comment Pagination only won't work in author template
yes...the menu become normal when I comment out the action. And I also discover that, this problem appeared to logged in user only.
Aug
28
comment Pagination only won't work in author template
hi,just now I discovered that my menu from wp_nav_menu messed up with the code above. My custom menu was replaced by a new menu where display all of my created pages. why is this happened? and how to solve it?
Aug
28
comment How to use wp_schedule_event in a class?
can this register_activation_hook use in theme function.php? Cause I just use it in my theme only. No intention to create a plugin for it yet. I now put it in the class constructor.
Aug
26
accepted Pagination only won't work in author template
Aug
26
comment Pagination only won't work in author template
Yes, your method work!Thanks...
Aug
25
comment Pagination only won't work in author template
Yes, i tried using the default permalink,no luck. The author.php template is use to display the posts from particular author. eg. john, and all his posts (from custom post type). Before click on the link, it show mysite.com/author/john/ and when I clicked on page number 2, it goes to mysite.com/author/john/page/2. the site is under development now on my local machine.
Aug
25
comment Pagination only won't work in author template
Nope,the url that goes to page 2 is exactly yoursite.com/author/john/page/2, it append with the author name before the 'page' slug. Also I created a page to list all authors, but is still doesn't work.
Aug
25
comment Pagination only won't work in author template
u mean change example.com/author/name to example/own-slug/name?I did tried this, but no luck as well.
Aug
25
revised Pagination only won't work in author template
added 37 characters in body
Aug
25
asked Pagination only won't work in author template
Aug
22
accepted settings api store multiple array
Aug
22
comment settings api store multiple array
This seem working. Thank you very much.
Aug
22
accepted How to Display a menu only if it has Posts in Custom Menu?
Aug
21
asked How to use wp_schedule_event in a class?