128 reputation
7
bio website sethalling.com
location Madison Heights, MI
age 29
visits member for 2 years, 2 months
seen Oct 17 at 12:50

Lead Developer for Ranch House Designs. Graphic designer. Husband. Father. Mormon. Sports fan of Detroit teams and BYU.


Sep
26
comment Difference between flush_rewrite_rules() and Settings > Permalinks
Turns out the difference has something to do with running the command in the admin section. I just tried running it in the Admin section, and that fixes it. Looks like I'll just have to keep going to Settings > Permalinks as I think finding a way to fake the admin section will be a security risk.
Sep
26
comment WordPress living together with a static site
In regards to the decision between blog.ourdomain.com and ourdomain.com/blog, there are potential SEO issues as well. blog.ourdomain.com will be looked at as a separate website than your current website, so you may compete against yourself. If you don't mind that, then the decision is your choice. But if you want the search engines to see the sites as one, then I'd recommend going with ourdomain.com/blog.
Oct
24
comment Custom field losing p tags on display
The difference is preference. The solution I have uses the main WP function for displaying content and creates a reusable filter for other areas on your site if you use apply_filters. As I normally use this solution when I'm creating custom wysiwyg editors, there may be some filters added that you don't need in functions.php. For your situation, you probably only need wpautop. And if you don't need the filter to be reusable, you can probably just use `<?php $story_content = get_post_meta($post->ID, 'story', true); echo wpautop( $story_content ); ?> and remove the code from functions.php.
Sep
6
comment How to link to a alternative page in CSS
I don't see how the php include will help. You need to create a javascript file in your theme directory containing the very last code block of my answer. Then you need to put in your functions.php file the code block directly above, changing the file name to your newly created js file.
Sep
6
comment How to link to a alternative page in CSS
I actually agree. I was trying to come up with a simple solution utilizing css only. The comment by @G.M. is the best solution, but it also takes the most work (which many times means it's worth it!) :)
Sep
6
comment How to link to a alternative page in CSS
You'd put the code all on one page. There wouldn't be a switching of pages. It would just display or hide the different content areas depending on what size the browser is set to.
Sep
6
comment How to link to a alternative page in CSS
If it's just the content, then this solution will work. You'll hide everything within your one container dive, and display the other, and then on the max width, reverse them.
Sep
6
comment How to link to a alternative page in CSS
It is possible, as long as it's only the content area that is being changed. By putting the class page-id-164 in front of your selectors, you will make it custom for that page utilizing your custom css. If you are changing your entire layout, including the headers, then that will be difficult to do with only css
Sep
6
comment How to link to a alternative page in CSS
It wouldn't work in custom css. You'd need to call in a new file or place it in script tags within your theme.
Sep
6
comment How to link to a alternative page in CSS
I've added the js for the code. It turns out that WP automatically strips slashes of the rel, so you'll just have to add a custom class and then manually change the url in your jQuery.
Sep
6
comment How to link to a alternative page in CSS
For the js, you can go to screen options on your menu and turn on Link Relationship. Then on the menu item, put in the different url. Also turn on classes and give it 'change-link'. I'm working on the jquery really quick right now.
Aug
29
comment Resize header image
If you are using Chrome Developer Tools (or Firefox with Firebug) you can view the properties of the header using inspect element. Your matched CSS Rules will tell you the location of the file with that css. If it is your page itself, then it means the css is probably being generated through the functions.php file or the a theme php file.
Aug
12
comment Limit top level menu items on wp_nav_menu
Looking at this code, I probably don't really need to check if child pages are in an array, but remove every item after the limit has been set.