33,510 reputation
22482
bio website chipbennett.net
location Cincinnati, OH
age 36
visits member for 3 years, 1 month
seen 14 mins ago

I am a WordPress enthusiast, and try to help others as I have been helped by others in the community.

Note: all code posted by me, in questions, answers, or comments is dual-licensed under the GPL version 2.0 (or, at your option, any later version), and the CC-By-SA license required by the Stack Exchange terms of service.


2h
comment How to make posts appear under pages
You will need to use Custom Page Templates, that have custom/secondary queries, that show posts from a given category.
4h
comment Is there an atomic way to update_option in Wordpress (to ensure data integrity)?
Why are front-end user data being stored as an option? You're describing content, which gets stored as posts.
4h
comment Is there an atomic way to update_option in Wordpress (to ensure data integrity)?
How does that happen, though? How do you envision two separate sessions attempting to modify settings? You're taking the 5-inch view of the problem. Pan out to the 5-feet view, or the 50-feet view. What's the scenario?
4h
comment Is there an atomic way to update_option in Wordpress (to ensure data integrity)?
Can you elaborate? What is the use case? What's the scenario you're attempting to cause or prevent?
4h
comment Is there an atomic way to update_option in Wordpress (to ensure data integrity)?
You should try using the Settings API.
8h
comment current_page_item is missing inside wp_nav_menu
More accurately, the Walker class is irrelevant.
1d
comment Generate Navbar In WordPress
Seems like overkill for something a few lines of CSS could fix.
1d
comment How to share post?
"HOw do I change the one for pinterest and mail to" - that question is not specific to WordPress.
1d
comment How to share post?
Much better, thanks. Now: assuming you want to replace "url=http://www.alskadehem.se" with a post-specific URL, what have you tried?
1d
comment How to share post?
Please trim your code to highlight just the post-sharing.
1d
comment Problems With Query and/or Template Part and/or PHP
In your first example, why are you running the custom query twice? Also, you con't call wp_reset_postdata() after the second iteration. Where is the actual failure taking place? Is the template part file being included or not being included? If it is being included, please edit your question to include its markup, and describe where within that markup the failure is taking place.
1d
comment WooCommerce plug-in for selling membership
Asking to recommend a product (plugin, theme, book, hosting provider), tool, library or off-site resource is out of scope of the site, as it attracts opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
2d
comment Adapting a php array to WordPress
Except, make that a curly quote not a curly brace. Derp.
2d
comment Adapting a php array to WordPress
This is a PHP syntax question, not specific to WordPress. The problem is an incorrect character (a curly brace) closing the 'api-key-here' string. Note 'api-key-here' vs 'api-key-here’.
2d
comment How to modify default blog listing?
possible duplicate of How to fix pagination for custom loops?
2d
comment The loop does not show users
Have a look at pre_get_posts and is_author(), and see if you can come up with a starting point.
2d
comment The loop does not show users
The author.php template file by default only shows posts of the post post-type. What have you done to filter the main query to display posts of other post-types?
2d
comment The loop does not show users
Is the file name authors.php (note plural) or author.php (note singular)?
2d
comment Why does a theme not display images with posts on the home page?
This is a commercial Theme. You should consult the support offerings of the commercial Theme developer/ThemeForest.
2d
comment The use of get_template_part() returns 'invalid argument' loading options
That's not a Theme Check error; it's merely INFO. The get_template_part() function is a template tag, and is intended to include template-part files, within the template. It is not intended to include functional files within functions.php. You should use include() or require() to include functional files in functions.php.