i am trying to get posts by multiple posts slugs, i can do this by passing post ids but I do not want to pass post ids i am looking for posts slug  Here is my code   $option = array( 'posts_per_page' =&gt; -1, 'post_type' =&gt; 'post', 'name' =&gt; 'berlin, frankfurt, munich, augsburg' );  $new_query = new WP_Query($option); if ($new_query-&gt;have_posts()) { while ($new_query-&gt;have_posts()) { $new_query-&gt;the_post(); /* my html stuff */ } }   but it does not display anything but when i pass only "berlin" then queyr gives me correct results. it mean i only need to use post ids to get selected multiple posts ?
I want to display the pages 'famous' and 'mschief'.  Using this code, WP_query() doesn't return any result:  $args = array( 'post_type' =&gt; 'page', 'pagename' =&gt; 'famous,mschief', 'posts_per_page' =&gt; 3 );   This code returns one of the 2 pages:  $args = array( 'post_type' =&gt; 'page', 'pagename=famous,mschief', );   And this code returns the 2 pages correctly:  $args = array( 'post_type' =&gt; 'page', 'pagename=famous,mschief', 'posts_per_page' =&gt; 3 );   Why does the first piece of code (the only correct one to me) doesn't work? And why the two others produce these results?
Can I load a .NET assembly at runtime and instantiate a type knowing only the name? Is it possible to instantiate an object at runtime if I only have the DLL name and the class name, without adding a reference to the assembly in the project? The class implements a interface, so once I instantiate the class, I will then cast it to the interface.  Assembly name:     library.dll    Type name:      Company.Project.Classname     EDIT: I dont have the absolute path of the DLL, so Assembly.LoadFile won't work. The DLL might be in the application root, system32, or even loaded in the GAC. Passing an array as a function parameter in JavaScript If replicators allowed humans to stop working, why were replicators shut down in the Voyager? If I was at point $A$ and I wanted to walk directly to point $B$, I would have to walk half way to point $B$, but before that I would have to walk half way to halfway to halfway to point $B$ and half of that again and so on and so fourth. if I halved this distance an infinite amount of times then there would be an infinite amount of actions I would need to perform in order to cross from $A$ to $B$. Therefore, if each action took any quantity of time at all, then it would take me an infinite amount of time to cross from $A$ to $B$, even if $A$ and $B$ were only a few centimetres apart!   Because I am not infinitely old and I can move, there must be a flaw in this logic. Where is it? Creating geodatabase feature class using geodatabase table schema with ArcPy? Is there a way in ArcPy to create an empty polygon geodatabase feature class that will acquire the schema of a geodatabase table?  I know that it's possible in ArcCatalog (New -> Feature Class and then import all the fields from a table) but I wonder if it can be written in a Python script.  The CreateFeatureclass_management tool allows only Feature Layers as schema templates. Orbit followed by a particle around Schwarzschild Black Hole How many times has the matter in our solar system been recycled from previous stars? I've got a basic understanding of these facts:   The Universe is a little over 13 billion years old.  Our galaxy is almost that old. Our solar system is roughly 4.6 billion years old. The heavier elements (Carbon, oxygen, etc...) are only produced by stars.   When our solar system coalesced, the matter that makes up the planets came from a previous generation of stars.  (Meanwhile our Sun is busy making its own slightly-heavier elements, but those aren't ours.  Those belong to the next "generation" after our star dies.)  So we're all sitting on a rock whose matter was spewed out of a star (or stars) that preceded this solar system. But what I want to know is:  How many cycles of coalescing, fusing, nucleosynthesis, exploding -- and then repeating the cycle -- have this atoms in this ball of rock I'm standing on been through?    How do you know this?  Can you tell by the make-up of the matter in the solar system?  Looking around the Orion arm to see remnants of our former home? I am having Problems converting user rights. I want to assign the following rights to certain files/folders but dont know hat to translate them into a format which chmod will work with like chmod 755.  -rwxrwxrwx    will be?  And  drwxr-xr-x   will be?  And finally  -rw-r--r--   will be? Export each image from a collection in Google Earth Engine I am trying to export each image in a filtered stack of Sentinel-1 images and cannot seem to get it right.   suggests using imageCollection.map() and a custom function (such as a geometric clip).  // Create a geometry representing an export region. var roi = ee.Geometry.Rectangle([-63.0, 9.2, -63.1, 9.3]);   // Load the Sentinel-1 ImageCollection. var sentinel1 = ee.ImageCollection('COPERNICUS/S1_GRD');   // Filter by metadata properties. var IW_H = sentinel1   // Filter to get images with VV and VH dual polarization.   .filter(ee.Filter.listContains('transmitterReceiverPolarisation', 'VV'))   .filter(ee.Filter.listContains('transmitterReceiverPolarisation', 'VH'))   // Filter to get images collected in interferometric wide swath mode.   .filter(ee.Filter.eq('instrumentMode', 'IW'))   // Filter IWs to get High res.   .filter(ee.Filter.eq('resolution', 'H'))   // Filter IW-Highs to get 10m res   .filter(ee.Filter.eq('resolution_meters', 10));   // Filter to get images from different look angles  var DescCollection = IW_H.filter(ee.Filter.eq('orbitProperties_pass', 'DESCENDING'));   var ClipFunc = function(iImage, geom) {   var iClip = clip(iImage, geom);   return(iClip); };   imageCollection.map(ClipFunc(DescCollection, roi)); Game Theory and Uniform Distribution question? In an Auction , two players are  bidding. Their bids will be a unknown fraction of their valuations. The valuations come from a uniform distribution $$[0,1] $$  If Player 2 bids $$ v/2 $$  and Player 1 bids $$b1&lt;1/2$$   What is the probability player 1 wins ? Clearly for player 1 to win,players 2 bid has to be less than player 1 bids. $$P(v/2 &lt; b1)$$  $$P(v &lt; 2b1)$$ I follow the question up to this stage. Now it says since its uniformly distributed the probability player 1 wins is $$2b1$$ Im confused how can you just get 2b1 from the inequality ?  Thanks in advance I have a website with login page that works normal. The problem is that once logged in, the user still has access to the login page form to enter, which should not happen.  I would like to know a wordpres plugin that redirects this user to another page when they access it after login. Should a retrieval method return 'null' or throw an exception when it can't produce the return value? Why do people sometimes use the past perfect form of a verb when the past would suffice? (e.g. "you had mentioned") I noticed that my American friends tend to use the past perfect form when they use the verb mention in its past form, almost despite of the context of the sentence. I hear them say  "you had mentioned" a lot more often even in situations where the use of simple past would have been perfectly fine. Have you noticed it too and is it one of those unwritten rules, or is there a more formal explanation to it?  It seems like there was more verbs like that, but I am having a hard time remembering it now. If I do, I will edit the post and likely change the title to accommodate other verbs. Do multiple instances of the Extra Attack feature stack? How can I pass a Parameter via Query String to populate a lookup field on a New Item Form/DVWP? form in a .tpl.php file This is the code in my template.php file.  function studiga_theme_theme($existing, $type, $theme, $path) {         $items['add_property_form'] = array(         'render element' =&gt; 'form',         'template' =&gt; 'node--14',         'path' =&gt; drupal_get_path('theme', 'studiga_theme') . '/templates/node',     );      return $items; }    function custom_add_property_form($form, &amp;$form_state) {     $form['first_name'] = array(         '#type' =&gt; 'textfield',         '#attributes' =&gt; array('placeholder' =&gt; t('First name')),     );     $form['last_name'] = array(         '#type' =&gt; 'textfield',         '#attributes' =&gt; array('placeholder' =&gt; t('Last name')),     );     $form['address'] = array(         '#type' =&gt; 'textfield',         '#attributes' =&gt; array('placeholder' =&gt; t('Address')),     );     $form['city'] = array(         '#type' =&gt; 'textfield',         '#attributes' =&gt; array('placeholder' =&gt; t('City')),     );     $form['state'] = array(         '#type' =&gt; 'select',         '#options' =&gt; array(             'default' =&gt; 'State',             '...' =&gt; '...',         ),     );     $form['zip'] = array(         '#type' =&gt; 'textfield',         '#attributes' =&gt; array('placeholder' =&gt; t('Zip')),     );     $form['email'] = array(         '#type' =&gt; 'textfield',         '#attributes' =&gt; array('placeholder' =&gt; t('Email')),     );     $form['phone'] = array(         '#type' =&gt; 'textfield',         '#attributes' =&gt; array('placeholder' =&gt; t('Phone')),     );     $form['submit'] = array(         '#type' =&gt; 'submit',         '#value' =&gt; 'Submit',     );      return $form; }   This is the code in node--14.tpl.php.                                          Contact Information                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  &lt;div class="row"&gt;     &lt;div class="small-12 medium-12 large-8 large-offset-2 columns"&gt;         &lt;?php print render($form['submit']); ?&gt;     &lt;/div&gt; &lt;/div&gt;     But no fields are appearing - what am I doing wrong? You can't have a straight forward  in a tpl.php file can you? Unsung hero dilemma This is partly related to  question.  I ran some queries on odata for my work on Stack Overflow, and I have found that my statistics are the following ones:  Accepted answers: 148 Zero score accepted answers: 36 Percentage of total: 24,3%  I probably fit the idea of the Unsong hero badge, as I've mostly been active in  questions, from when it only had around 200 Questions until now.  To get the badge I could either try to get one of my accepted answers downvoted once, that would give me a 25% accept rate; I could also delete 4 of my accepted answers with 1 or more score. That would also give me the badge, but this just seems wrong: You are actually encouraging me to either try to get a down-vote on a good answer, or delete good answers.  So, should I delete good answers to receive a gold badge?  Update: It's not that I care much if I get a badge or not, it's only a badge after all and not why I spend time on Stackoverflow anyways. But it's not ideal [read: problem] that I'm encouraged to delete accepted answers or try to get downvotes to achieve a badge. Removing intercept from GLM for multiple factorial predictors only works for first factor in model I get this error in the deployment step of a share-point farm based project. Most of the suggested solutions on the net are a simple Visual Studio re-start, however, a simple VS restart won't fix this.   Any ideas on what might be causing this? Make the network profile editable on the main Stack Exchange page Currently, the Stack Exchange Network Profile links to all the network accounts and acts as a centralized profile page. Seeing that the ability to edit the profile is available from the profile pages of all *.SE sites, I think the ability to edit profiles should be available on that Network Profile page as well.  It will be consistent with the nature of the centralized profile page and will better the user experience.   EDIT: As the current Network profile, is actually the oldest profile on the Network, providing an edit option on the Network profile which links to the oldest profile edit page, would be one way to implement this.