How to get pages id in array in get_pages?
You can use include argument (see get_pages() in Codex for details and examples) to retrieve specific set. To continue your snippet that would be: $pages = get_pages( array( ‘include’ => $arrData, ) );
You can use include argument (see get_pages() in Codex for details and examples) to retrieve specific set. To continue your snippet that would be: $pages = get_pages( array( ‘include’ => $arrData, ) );
If you are using a follow button plugin like the one in my Simple Twitter Connect plugin, then you should be able to specify the user you want the button to be for. So for example, with STC, I’d activate STC-Login and the STC-Follow Button Widget plugins. Then I’d have my users “connect” their twitter … Read more
The fastest way would be an iframe plugin ( like “Embed Iframe”) , you can then just copy past it all and cross your fingers. You might also be able to just copy/past from the script tag to /script into the html editor of a post. The alternative and best method is to make your … Read more
For beta testing use either a separate domain or at least a subdomain in another directory than your live site. If you absolutely have to use the current setup install a plugin that offers password protection like Members or change the .htaccess rules to: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] # … Read more
I know toscho doesn’t like this very much, but anyway: Converted the input args to an array: function utf8_truncate( $args = array( ‘string’ => null, ‘max_chars’ => 200, ‘append’ => “\xC2\xA0…” ) ) { $args[‘string’] = strip_tags( $args[‘string’] ); $args[‘string’] = html_entity_decode( $args[‘string’], ENT_QUOTES, ‘utf-8’ ); // \xC2\xA0 is the no-break space $args[‘string’] = trim( … Read more
The comment box will probably dissapear if you disable comments from the page editing screen (there’s a checkbox). To answer your question, no, there aren’t any simple rules, but here’s a rough outline: Which posts are to be displayed is determined by the WP_Query class. The way these posts are displayed, along with other elements … Read more
So long as you have a standard page template header in your map-template.php, you can use the Custom Post Template plugin (which essentially allows you use templates on posts in the same way you do with pages). Update: Perhaps you might be better off using shortcode. For example; This is my post content in the … Read more
that’s going to be a bit tricky since WordPress doesn’t relate date and time format to language. so to get the current language from the browser you can use $_SERVER[‘HTTP_ACCEPT_LANGUAGE’] and then based on that you can change the date format: function update_date_format(){ $lang = substr($_SERVER[‘HTTP_ACCEPT_LANGUAGE’], 0, 2); if (strpos($lang, ‘au’) > 0){ $date_format=”d/m/Y”; // … Read more
The plugin determines the width and height of the viewport on page load, but it’s using $(window).height() which looks at the size of the viewport and then absolutely positions the content div over the image, relative to the viewport/window. Because the page isn’t loading at the top of the document, the content is absolutely positioned … Read more
See If this helps. Bill Erickson has a great tutorial on how to use multiple content areas in thesis theme. I think you should be able to replicate it with any good WP Theme. Here is the link