ryanve
Forum Replies Created
-
Forum: Plugins
In reply to: Get URI Contents@jeremy Awesome thanks, that looks like it should do the trick =]
Forum: Themes and Templates
In reply to: Multiple css for different screen resolutionsYou’d don’t want to do it like that. Use media queries.
<link rel="stylesheet" media="all and (max-device-width:1000px)" href="small.css" /> <link rel="stylesheet" media="all and (min-device-width:1001px)" href="large.css" />
Or (better) just make one stylesheet and use media queries in it:
/* Put base styles here for below 1000px */ /* Then use media query for devices above 1000px */ @media all and (min-device-width:1001px) { /* styles here */ }
Are you referring to CSS background images or images in an
img
tag? You can make images resizable in CSS by usingmax-width:100%; height:auto;
See this.Forum: Plugins
In reply to: Remove base slug on Custom Post Type?When you want to add a slug to the CPT it’s like this:
'rewrite' => array('slug' => 'myslug')
But for pages, I’m not sure (aside from making child pages).
It seems slugless CPTs can cause errors. I don’t recommend them. See thread.
Forum: Themes and Templates
In reply to: Are all ID's unique?It sure does—thx. So then I guess there’s one set for all the posts/pages/cpt’s and one for all the tags/categories/taxonomies—makes sense.
Forum: Hacks
In reply to: How can I create a custom post type with empty slug?Actually I stand corrected. It blows sh** up LOL. The CPT worked but it seems to screw up some other things like the normal pages and the author pages. If you don’t want a slug my best suggestion for now is just to pick something really short as the slug or maybe an underscore. I think a slug is good anyway for users. If you’re getting 404s just change the slug and flush the permalinks again.
Forum: Hacks
In reply to: How can I create a custom post type with empty slug?@ciantic Yea you definitely need to flush the permalinks. To do that just go Setting ? Permalinks and then try the page again. You don’t need to actually change anything on the Permalinks settings. Just going in there will flush them.
@synthview Screw up how? I just tested this again with a current version of WP and it works no problem. Here is a live example I just put up from work.
Forum: Requests and Feedback
In reply to: get_dynamic_sidebar function needed or perhaps a hook?Ah found it, for anyone else looking, see: core.trac.www.ads-software.com/ticket/13169
Forum: Themes and Templates
In reply to: How to update custom theme without uninstalling it first?Try unzipping in a separate folder (or offline) and then copy (or FTP) them over.
Forum: Requests and Feedback
In reply to: get_dynamic_sidebar function needed or perhaps a hook?@_dorsvenabili That worked for me =) Do you remember the link to where you found it? It definitely seems like it would be useful to have it as an official function.
Forum: Fixing WordPress
In reply to: Custom Post Type Permalink PerformanceNice, thanks, I should’ve used Ctrl+F to find it in the new comments rather than going off remembering what I read last year ??
Forum: Hacks
In reply to: How can I create a custom post type with empty slug?This seems to work:
'rewrite' => array('slug' => '/')
Output: example.com/headline/
Slug removed—no extra slashes.
Remember to flush as mentioned by @winningsem
Forum: Plugins
In reply to: Remove base slug on Custom Post Type?Whoa—this works:
'rewrite' => array('slug' => '/'),
It removes the slug w/o adding extra slashes.
Forum: Themes and Templates
In reply to: is_user_logged_in() check based on user level?That’s just what I needed—thank you ??
Forum: Themes and Templates
In reply to: WP adding style with extra 10px.. Where?Actually this version is more solid:
jQuery().ready(function( jQuery ) { jQuery(".wp-caption").width(function() { return jQuery('img', this).width(); }); });
See this thread.
Forum: Themes and Templates
In reply to: WP adding style with extra 10px.. Where?The extra 10px can also be removed using jQuery. The code below sets the
.wp-caption
container width to match the width of the image inside it:jQuery().ready(function() { var width = jQuery(".wp-caption img").width(); jQuery(".wp-caption").width(width); });
See this thread.