394 reputation
112
bio website
location
age
visits member for 2 years
seen 2 hours ago

Sep
22
asked show author avatar
Sep
22
comment problems exluding categories
That's a nice little function. It works well. Thank you.
Sep
22
accepted problems exluding categories
Sep
22
comment problems exluding categories
I am a little confused on how this would work. I have a file called template-homepage as my homepage. and I have created a page and called it blog. in the settings, I set my site to a static homepage and gave the front page the template-homepage and set the blog page to blog. The blog page is pulling from the index.php file which I modified with a loop so that the blog will look how I need it to look. How would wordpress look at the blog page as home in your filter above?
Sep
22
comment problems exluding categories
it doesn't work. I tried all those combinations.
Sep
22
asked problems exluding categories
Sep
17
comment trouble with my loop
I have been been looking over my code above. So I am trying to get the category id by using the get_category_by_slug() but I am getting nothing when I echo out for a test. when I tried using a foreach loop, I got an invalid argument passed to implode $cat = explode( ', ', $data['exclude_categories'] ) ; foreach ($cat as $categories){ $string = get_category_by_slug( implode(',',$categories)); echo $string; }
Sep
17
comment trouble with my loop
Ok, thanks Milo. I have used my method above in the past but I realized after your comments that the framework returned the ID instead of the category slug.
Sep
17
comment trouble with my loop
that method doesn't work for me either. In the example, they are using ID's also. The function uses is_home(), my blog isn't on the homepage. I tried is_page but that gave me undefined index errors. I also tried category_name =- homepage but that gave me weird results. It cut out the wrong category
Sep
16
asked trouble with my loop
Sep
9
accepted Show shortcode without executing it
Sep
9
asked Show shortcode without executing it
Sep
4
comment Problems with explode
Thank you Milo, worked great
Sep
4
accepted Problems with explode
Sep
4
asked Problems with explode
Sep
1
accepted why is there an author.php
Aug
31
comment what is template-name.php
for some reason when I try this, it doesn't work. Here is what I thought. If I have a custom post type called "gallery" I should be able to set up a file called page-gallery.php and wordpress would pick it up automatically so I would not need to set the template name on the page. But when I try that logic, it doesn't work. I could have sworn I did this before
Aug
31
accepted Customizing Default Categories Widget
Aug
31
asked why is there an author.php
Aug
30
comment trouble with featured image
Thanks. I will try that plugin and see what happens