468 reputation
2927
bio website
location
age
visits member for 2 years, 5 months
seen Aug 30 at 2:48

A Coder...


Oct
22
comment How navigation works in custom loop within shortcode?
I am sorry, it was a typo, it should be 10,now updated.
Oct
22
revised How navigation works in custom loop within shortcode?
added 1 characters in body
Oct
22
revised How navigation works in custom loop within shortcode?
added 705 characters in body
Oct
22
comment How navigation works in custom loop within shortcode?
yes, i also added max_num_pages in the query, but still not working.
Oct
21
comment How navigation works in custom loop within shortcode?
I already added the paged in my custom query. The max_num_pages somehow is not working. It does not limit the post, so I use posts_per_page instead. But the next_posts_link() and previous_posts_link() still doesn't works.
Oct
21
asked How navigation works in custom loop within shortcode?
Sep
26
comment WP_Query can't exclude more than 1 author?
@Stephen Harris, I use the query for running at the background. How do I hook it when it is not depending on front end pages?
Sep
26
comment WP_Query can't exclude more than 1 author?
I put it in an array because i have other parameters need to be filled in. Besides, this query work for the positive author id, it suppose to work for the negative author id as well.
Sep
26
comment WP_Query can't exclude more than 1 author?
I using the query in a plugin, so this method won't help. anyway thanks for the tips.
Sep
25
asked WP_Query can't exclude more than 1 author?
Sep
23
accepted How to pass variable via $callback_args for add_meta_box
Sep
23
comment How to pass variable via $callback_args for add_meta_box
Okay, figured it out...turned out I need to defined all the args in add_meta_box() in order to make it works. I thought that using the default value of $context and $priority can do the job. Obviously I am wrong. However, Kaiser...thanks a lot.
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?