Filter article that has featured image to shown on homepage How do I display article that has featured image uploaded?  I using premium theme. I found that all of the themes don't have this feature.  Am I need to configure this in php file?  Or there is another alternative way to fix this?  Hope this will not off topic.    I tried to add 'meta_key' =&gt; '_thumbnail_id' in the script below, but not working.          &lt;div class="grids entries"&gt;          &lt;?php         $cats_to_show = get_sub_field( 'category_posts_per_page');         $cat_id = get_sub_field( 'category_section_name' );          $ti_cat_posts = new WP_Query(             array(                 'posts_per_page' =&gt; 5,                 'cat' =&gt; $cat_id,                 'no_found_rows' =&gt; true,             )         );   became  &lt;div class="grids entries"&gt;      &lt;?php     $cats_to_show = get_sub_field( 'category_posts_per_page');     $cat_id = get_sub_field( 'category_section_name' );      $ti_cat_posts = new WP_Query(         array(             'posts_per_page' =&gt; 5,             'cat' =&gt; $cat_id,             'meta_key' =&gt; '_thumbnail_id'  // Added              'no_found_rows' =&gt; true,         )     );
Query the post which have a thumbnail I've got a highlight section on the header of my website which shows the title and the thumbnail of the last X posts having a thumbnail.  Is there any custom query which allows me to retrieve only the last X post having a thumbnail?  At the moment I'm retrieving the last X * 10 posts (because not all the posts have a thumbnail) hoping that in this result I'll have X posts having a thumbnail. After doing my query I add a condition: if (has_post_thumbnail()).  This solution is really uncertain and ugly, a custom query with a thumbnail parameter would be great but I couldn't find any hint about it.
How general is the Lagrangian quantization approach to field theory? It is an usual practice that any quantum field theory starts with a suitable Lagrangian density. It has been proved enormously successful. I understand, it automatically ensures valuable symmetries of physics to be preserved. But nevertheless the question about the generality of this approach keeps coming to my mind. My question is how one can be sure that this approach has to be always right and fruitful. Isn't it possible, at least from the mathematical point of view that a future theory of physics does not subscribe to this approach? Is it considered plagiarism for a professor to use uncited sources in teaching materials? Back in Europe I have a N64 console. As I am currently living in Japan, I find myself tempted to buy some old N64 games in Japanese. However, the articles about the N64's region locking usually assume Japanese games on an American console...  My question thus is: Can you play a Japanese N64 Game on a European console? What is the command to truncate a SQL Server log file? I need to empty an LDF file before sending to a colleague.  How do I force SQL Server to truncate the log? I have come across these three definitions of the limit superior (or upper limit) and the limit inferior (or lower limit) of a sequence of real numbers and I wonder how to establish the equivalence of these.    Walter Rudin: PRINCIPLES OF MATHEMATICAL ANALYSIS, 3rd edition:  Definition 3.16: Given a sequence $\{s_n\}$ of real numbers, let $E$ be the set of numbers $x$ (in the extended real number system) such that $s_{n_k} \to x$ for some subsequence $\{s_{n_k}\}$. This set contains all subsequential limits ..., plus possibly the numbers $+\infty$, $-\infty$. We now ... put  $$s^{*} = \sup E,$$ $$s_{*} = \inf E.$$ The numbers $s^{*}$, $s_{*}$ are called the upper and lower limits of $\{s_n\}$; we use the notation  $$ \lim_{n \to \infty} \sup s_n = s^{*}, \, \, \, \lim_{n \to \infty} \inf s_n = s_{*}.$$ Tom M. Apostol: MATHEMATICAL ANALYSIS, 2nd edition:  Sec. 8.3: Definition 8.2: Let $\{a_n\}$ be a sequence of real numbers. Suppose there is a real number $U$ satisfying the following conditions:    i} For every $\epsilon &gt; 0$ there exists an integer $N$ such that $n &gt; N$ implies $$a_n &lt; U + \epsilon.$$ ii) Given $\epsilon &gt; 0$ and given $m &gt; 0$, there exists an integer $n&gt; m$ such that $$a_n &gt; U - \epsilon.$$ Then $U$ is called the limit superior (or upper limit) of $\{a_n\}$, and we write $$U = \lim_{n \to \infty} \sup a_n.$$ Statement (i) implies that the set $\{a_1, a_2, a_3, \ldots \}$ is bounded above. If this set is not bounded above, we define $$\lim_{n\to\infty}\sup a_n = +\infty.$$ If the set is bounded above but not bounded below and if $\{a_n\}$ has no finite limit superior, then we say $\lim \sup_{n\to\infty} a_n = -\infty$. The limit inferior (or lower limit) of $\{a_n\}$ is defined as follows: $$\lim_{n\to\infty}\inf a_n = -\lim_{n\to\infty}\sup b_n,$$ where $b_n = -a_n$ for $n= 1, 2, 3, \ldots$.    Robert G. Bartle and Donald R. Sherbert: INTRODUCTION TO REAL ANALYSIS, 3rd edition: Exercises for Section 3.3: Problem 10: Let $(x_n)$ be a bounded sequence of real numbers, and for each $n\in \mathbb{N}$ let $s_n \colon= \sup \{x_k \colon k \geq n\}$ and let $t_n \colon= \inf \{x_k \colon k \geq n\}$. Prove that $(s_n)$ and $(t_n)$ are monotone and convergent. Also prove that if $\lim (s_n) = \lim (t_n)$, then $(x_n)$ is convergent. [One calls $\lim (s_n)$ the limit superior of $(x_n)$ and $\lim (t_n)$ the limit inferior of $(x_n)$.]   Now how can one show that the above three definitions are equivalent (i.e. these three definitions are of the same pair of numbers)? What is the word or term used to describe doing an activity or work with a high level of concentration and intention, trying your best? Incoming light reacts with the several types of cone cells in the eye. In humans, there are three types of cones sensitive to three different spectra, resulting in trichromatic color vision. Each individual cone contains pigments composed of opsin apoprotein, which is covalently linked to either 11-cis-hydroretinal or more rarely 11-cis-dehydroretina.  The opsins (photopigments) present in the L and M cones are encoded on the X chromosome.  A very small percentage of women may have an extra type of color receptor because they have different alleles for the gene for the L opsin on each X chromosome. X chromosome inactivation means that only one opsin is expressed in each cone cell, and some women may therefore show a degree of tetrachromatic color vision. Tetrachromacy is also demonstrated among several species of birds, fish, amphibians, reptiles and insects.  Humans cannot see ultraviolet light directly because the lens of the eye blocks most light in the wavelength range of 300–400 nm.  So, besides above mentioned exceptions, is it possible due to mutations or genetic engineering to see UV or infrared. What kind of mutations should be made or are the changes to be made in the opsines to big to create 'alien' eyes? Use of 'prototype' vs. 'this' in JavaScript? What's the difference between  var A = function () {     this.x = function () {         //do something     }; };   and  var A = function () { }; A.prototype.x = function () {     //do something }; @online bibliography biblatex “Have you seen...” or “Did you see...?” In the US, when people work together, they may look for a colleague or any person to say something or for any other reason, asking colleagues or other people this type of question:         Have you seen Michael?   (OR)        Did you see Michael?          Which is considered right if the question refers to an activity (in our case "see") during the day and not in the past in general? I'm trying to get images in my document in two different ways:   On top of the entire page, centered On top of a single column   I tried it with both twocols and multicols. I ruled out twocols because it forces a new page every time you turn it on, because I need the abstract to be wide and the rest of the cover page to be two columns.  Here are some examples of both points (screenshot from a downloaded PDF):   I want to achieve both, but somehow I can only solve the first point with:  \end{multicols}  \begin{figure}   \centering     \includegraphics[width=0.5\textwidth]{figure}   \caption{Dataflow pipeline of the edge detector}   \label{fig:workflowedge} \end{figure}  \begin{multicols}{2}   Is it awkward to turn off multicols, then turn it back on again?  For my second point, I've tried everything, but almost always, the image doesn't show up at all! The only way I can get it to show at all is by specifying the H placement specifier, but that places the image inside the text where I defined it, not on top of the column.  This is my best try, but it hides the image and breaks all references to ??:  \begin{figure}[t!]   \centering     \includegraphics[width=0.25\textwidth]{figure}   \caption{Dataflow pipeline of the edge detector}   \label{fig:workflowedge} \end{figure}   and I'm getting the warning:  Package multicol Warning: Floats and marginpars not allowed inside `multicols' environment!.   How can I make a figure a non-float?  I also tried the figure* environment, but that just creates an image centered on top of the page, like my first point. How do I install .run files? My PC has both Ubuntu and Windows 7 installed. I have installed all my drivers in Windows like Nvidia graphics, motherboard etc. Shall I install them in Ubuntu too?  I looked on the web for my Nvidia drivers and I have found a .run file. How could I install it on my Ubuntu? When I go to localhost/phpmyadmin I get the apache "Not Found" error (404). However, I can load html pages, and run php pages (such as &lt;?php phpinfo(); ?&gt;). And phpmyadmin is installed.  balter@homedevbox:~$ aptitude search phpmyadmin i   phpmyadmin                                               - MySQL web administration tool   I also installed the standard ubuntu LAMP stack and set passwords for mysql and all that.  What could be the problem?  EDIT: Here is where my phpmyadmin files are.  balter@homedevbox:/var$ cd / balter@homedevbox:/$ sudo find . -type d -name phpmyadmin ./var/lib/mysql/phpmyadmin ./var/lib/phpmyadmin ./etc/phpmyadmin ./usr/share/phpmyadmin ./usr/share/dbconfig-common/scripts/phpmyadmin ./usr/share/dbconfig-common/data/phpmyadmin ./usr/share/doc/phpmyadmin MacBook is displaying the message "no hardware installed" when I click on Wi-Fi I have a MacBook Pro 2009 running MacOS El Capitan. Recently the Wi-Fi has stopped working.   When I click on the Wi-Fi icon it displays the message "No hardware installed", but Ethernet still works.   Is there any way of fixing this by using a Wi-Fi dongle or something of the sort, if so do I need a specific dongle and how do I install it? Appropriate statistical analysis to use UNO Stacking a Draw 4 Card instead of picking up 4 cards? Need clarification on the Draw 4 rule. - Player 1 lays down a Draw 4 Card and says the color is Red. - Player 2 does not have a Red card but has a Draw 4 Card. Can Player 2 lay down his Draw 4 Card and have Player 3 draw 8 cards? How do you get \mathbb{1} to work (characteristic function of a set)? I am trying to get the digit one printed the \mathbb{} font in math mode, however the command  \mathbb{1}   outputs some rubbish. I certainly saw the character I am after in some pdf's generated from latex, hence my question: how do you get it to work? Allow users to hide connections between accounts This feature request is inspired by the question on Programmers.SE on .   Stack Overflow is a site aimed at professional programmers, and it is used by some employers and some employees to examine or showcase the candidates abilities. I don't see any problem with that, but there is one aspect I'm a bit concerned about. Certain SE sites are far more private than the professional sites like SO. Anyone that participates in Christianity, Judaism, Islam or Biblical Hermeneutics is likely giving out a significant amount of information about their personal belief or world view to anyone who can connect the user name to the actual person. Another example would be controversial topics on Skeptics or Politics; not everyone would like to give their employer access to that kind of information.  The fundamental problem is that the SE platform does not allow for any separation inside one account. Of course one could create separate accounts for private and professional topics, but that requires a significant amount of clairvoyance and a rather annoying user experience juggling separate browsers to log into different accounts at once. An additional problem is that SE has automatic user merge features that can be triggered by logging into two accounts in the same session. I'm not sure how they work exactly, but I suspect that having your two accounts accidentally merged is a real danger if you are not careful.  There should be a mechanism to hide the connection between SE accounts, without having to use separate OpenIDs. For example, if I would like to use my SO account in job applications, I should be able to separate it from all my other accounts. The separation would only be for the publicly accessible part, moderators could still be allowed to see the connection between accounts. And behind the scenes it would just work as it is now, just without any links between the accounts.   The aspects that would need to be changed that I can think of are   the accounts tab in the user profile, that shouldn't show any connections for separated profiles copying the user profile to other sites should not work for separated profiles the network profile should not show the connections between separated profiles Area 51 should also not show the profile connections   This separation would not have to be bulletproof, but it should prevent users googling a specific person to make connections the user does not want to make public. Prove that the functions $f(z)$ and $\overline{f(\overline{z})}$ are simultaneously holomorphic.   I take this to mean that $f(z)$ is holomorphic if and only if $\overline{f(\overline{z})}$ is holomorphic.  Let $g(z)=\overline{f(\overline{z})}$. Note that $\overline{g(\overline{z})}=f(z)$. So it suffices to prove that if $f(z)$ is holomorphic, then $g(z)$ is holomorphic.  Write $f(z)=u(z)+iv(z)$. Since $f(z)$ is holomorphic, the real and imaginary parts satisfy the Cauchy-Riemann equations:  $$\frac{\partial{u(z)}}{\partial{x}} = \frac{\partial{v(z)}}{\partial{y}}, \frac{\partial{u(z)}}{\partial{y}} = -\frac{\partial{v(z)}}{\partial{x}}.$$  We have $g(z) = u(\overline{z})+i(-v(\overline{z}))$. To prove that $g(z)$ is holomorphic, we must prove that its real and imaginary parts satisfy the Cauchy-Riemann equations:  $$\frac{\partial{u(\overline{z})}}{\partial{x}} = \frac{\partial{(-v(\overline{z}))}}{\partial{y}}, \frac{\partial{u(\overline{z})}}{\partial{y}} = -\frac{\partial{(-v(\overline{z}))}}{\partial{x}}.$$  How can we obtain this from the above relations? What statistical test to use for discrete predictor and response variables? I'm doing a statistical analysis of a model for college. It's modelling a bear catching fish and I'm asking will the amount of time taken to digest the fish have an effect on the amount of fish caught? (stupid question I know!) So the predictor variable is the amount of fish the bear can eat before it needs to digest and the response variable is the amount of fish it catches. The predictors varies between 1 and 30 in integers and the response is also in integers. I repeated each level of the predictor 5 times creating a sample size of 150 altogether. I was thinking of just using a simple correlation test such as cor.test in R, but I've read online that this is for continuous data. Does that matter or would this test still be appropriate? Thanks a million, Eamon