17,382 reputation
31858
bio website tomjn.com
location United Kingdom
age 26
visits member for 4 years, 7 months
seen 2 days ago

I’m a VIP Wrangler at Automattic, a former Code For The People developer, a speaker at conferences, and an elected community moderator at WordPress Stack Exchange.

I also blog about WordPress and PHP at http://tomjn.com


Apr
16
comment Best way to create onepage wordpress theme
That's one way of doing it, if it works for you, so long as you're not horribly kludging things and repurposing things, you could use posts? It's already loading those in
Apr
16
comment Best way to create onepage wordpress theme
There is no best way to do it, if you have the answers to those questions then you have everything you need already, you're going to have to be a bit more specific about what you're concerned about, if it's reassurance you want, a forum may be the better place. Just do what works for you
Apr
16
comment Best way to create onepage wordpress theme
I can see multiple questions here, but there are precursor questions you need to discover first: "Q: How do I query for posts in the database?" ( hint: WP_Query ), "Q: What is a post loop?", "Q: What is the template hierarchy and how does WordPress pick which template is used?", "Q: What is the main post loop, and how do I modify it?" ( hint: pre_get_posts )
Apr
15
comment How can I add recent posts to menu like mashable
A large chunk of how to do this is going to be CSS/JS work that's unrelated here and would be out of scope of this site. You might be better off breaking your question apart, e.g how to replace a menu item with a list of posts, remember, you can ask more than one question on this site, so don't ask 1 overarching too broad question when you can ask 5 separate ones
Apr
15
comment I want to add some changed to register user method in WP
You shouldn't modify Core WordPress files
Apr
14
comment problems with comments_number()
You're missing the information that comments_number doesn't return the number of comments, it prints it out
Apr
14
comment thumbnails file size is gets bigger than the original file!
Without knowing anything about the image, your server, the image extensions, if GD was used or if imagemagick was used, or any plugins that may be involved, it's impossible to know from just what you've posted
Apr
14
comment Disable Media uploader to users
Ooh, have you asked ACF support? 3rd party plugins are off topic here, someone could answer in the generic sense? But not in the ACF context
Apr
14
comment getting a blank login page :( any way I can fix this without having to do a clean install?
You should indent your code correctly, it'll make these kinds of errors much easier to spot
Apr
14
comment Disable Media uploader to users
So you want to disable the uploader, but show the uploader? Or do you actually want to disable the selection of existing images?
Apr
13
comment Cant insert wrapper div into index.php
You should use attachment posts with the wp_get_attachment_url function, don't hard code file paths in the uploads folder. Look at example image controls in the customizer for a good example
Apr
13
comment Cant insert wrapper div into index.php
This displays the wrapper div even if there are no posts
Apr
13
answered Cant insert wrapper div into index.php
Apr
13
comment How to duplicate Sub Menu?
Of note for anybody who tries to answer this, a menu item in the database is a post of type nav_menu_item, but a menu itself is a term in a taxonomy. Sub menus are just menu posts that have a parent menu post. Duplicating a menu involves creating a new menu term and giving it the same posts. Duplicating a sub-menu however would require duplicating posts. There is also the UI issue to tackle
Apr
13
comment Specific Page that convert Hyperlink to anchor in nav menu
Oooh, you don't have pretty permalinks turned on? This explains a lot, anything involving rewrites or changing permalinks will need permalinks turned on
Apr
13
comment Jetpack Contact form change the from email adres
You should contact Jetpack support, Jetpack is a 3rd party plugin, so it's out of scope here
Apr
12
comment Automatic iframe to embed
This question is difficult to understand, are you asking how to put iframes in post content?
Apr
12
comment Specific Page that convert Hyperlink to anchor in nav menu
I've made modifications to my answer, for information on custom taxonomies you should look elsewhere on this site. Other people have asked about it and good answers were given, better to look at those, but you want the register_taxonomy function
Apr
12
revised Specific Page that convert Hyperlink to anchor in nav menu
added 593 characters in body
Apr
12
comment Specific Page that convert Hyperlink to anchor in nav menu
My code is unrelated to your custom nav walker, I hadn't spotted the meta requirement though which suggest you're going about this all wrong