488 reputation
215
bio website
location
age
visits member for 2 years, 7 months
seen 28 mins ago

Nov
2
comment Return array keys and values
Thanks. I will try to find a php forum.
Sep
6
comment pre_get_posts and the blog page
This is what I ended up with. This gave me the best result.. Adding 'page' == get_option('show_on_front') seems to have worked the best
Sep
6
comment pre_get_posts and the blog page
I think it would be more correct to say that I didn't understand your explanation. It may have made perfect sense. n any case, your solution isn't working for me. I got an error with the $query->is_main_query. I had to take it out. But it also makes the home page show the blog posts and the blog page show the blog posts when "Show latest posts" is selected. I am trying to filter just the blog posts for the blog page through the index instead of setting up a separate template.
Sep
6
comment pre_get_posts and the blog page
Sorry Pieter, but your answer doesn't make any sense to me. The blog page can't be my front page if I set a static front page as a template. So I am trying to filter the posts that go to the blog page through the index loop so that only the posts in the blog category will show, otherwise, it should get all posts
Apr
19
comment Meta function issue
This is working. I took the code from the 2012 theme. I used it the same way in my theme. That is why I thought it would work. All I did was add my html.
Apr
17
comment One page loop issue with posts
I think I am going to inlcude posts another way. After thinking about it. It might cause problems for me to get posts.
Apr
15
comment One page loop issue with posts
That is an interesting thought. I did not try that. this isn't really a multiple loop issue though. The loop is suppose to get posts and pages. I would think right outside the if statement for the template I should be able to get posts. Just not sure how to do that.
Apr
8
comment problem including page template
I am using a page template for the homepage. I am trying to include all templates and pages on the front page. Get_pages doesn't work because it won't get the HTML in the template. Are you thinking there is a better way? I am open to your suggestions
Apr
8
comment problem including page template
get_template_directory did the same thing for me as get_template_directory_uri. I tried get_page_template and that seems to work out ok. I think my code is messed up a little though because it puts the footer before the main content. But all the pages that I need are there and the content is correct.
Mar
27
comment gallery image size
I would think post_gallery would work also. The strange thing is that when I put in that filter, the width and height is still there.
Mar
26
comment gallery image size
It's not a duplicate. That post is talking about a plugin using shortcodes and limiting the amount of images posted. I tried the filter in that post and it didn't work.
Feb
28
comment adding checkbox to theme customizer
I got it. Thanks for you help Dylan. It did help me look at the code a bit different
Feb
27
comment adding checkbox to theme customizer
Yes, I got it with the code in the article.
Feb
27
comment adding checkbox to theme customizer
the checkbox does allow me to check and uncheck it but the options still doesn't work. Under this code, I get this string(0) ""
Feb
5
comment How to add a custom field in the advanced menu properties?
How do you get the custom value? I tried using get_post_meta but I am not seeing anything.
Feb
2
comment using nav menu id's
yep, I did have it settings set to 3. I can't believe I didn't think of that. Thank you for your help.
Feb
2
comment using nav menu id's
$number was already an array. I was using the implode function to add the comma because I thought the syntax for post__in would have been 1,2,3,4. As it is, there are no comas in the array. So wouldn't the syntax be wrong? The code you posted works better but only returns 3 out of 12 pages
Feb
1
comment get category name in admin screen
It works! Thank you Shazzad. I appreciate it. Works perfectly
Jan
31
comment get category name in admin screen
I tried that just now and it doesn't work. The link in the sidebar disappears.
Jan
19
comment How to paginate get_categories?
I solved it. Did you have something to add?