Static Page > Post Page displays data from latest blog post instead of the page details Background  I have created a Page called Blog. I have  selected "A Static Page" > Post Page > Blog In the "home.php" I am displaying all post with while(have_post()) This is working fine. It is displaying all post.  The issue I am having is when I return the page title with &lt;?php the_title(); ?&gt; is returns the most recent post's title which is "Post 6" instead of "Blog" the name of the page.  I am also displaying the content of the "blog" page as well but again it is displaying the content of the most recent post.  So how do I display the page content of the page blog?  &lt;?php get_header(); ?&gt;  &lt;?php the_title(); ?&gt;  &lt;div class="row"&gt; &lt;div class="large-9 columns"&gt; &lt;?php if ( have_posts() )  { ?&gt;     &lt;div class="row"&gt;         &lt;?php              while ( have_posts() ) {             the_post();         ?&gt;         &lt;div class="large-12"&gt;                  &lt;a href="&lt;?php the_permalink() ?&gt;" rel="bookmark" title="&lt;?php the_title(); ?&gt;"&gt;                 &lt;?php if ( has_post_thumbnail() ) { ?&gt;                     &lt;?php echo get_the_post_thumbnail(); ?&gt;                 &lt;?php } ?&gt;                 &lt;h4&gt;&lt;?php the_title(); ?&gt;&lt;/h4&gt;&lt;/a&gt;                 &lt;?php the_excerpt(); ?&gt;              &lt;/div&gt;          &lt;?php } ?&gt;     &lt;/div&gt;&lt;!--row--&gt;      &lt;?php } else { ?&gt;     No Post     &lt;?php } ?&gt; &lt;/div&gt; &lt;div class="large-3 columns"&gt;     &lt;?php get_sidebar(); ?&gt; &lt;/div&gt; &lt;/div&gt;   &lt;?php get_footer(); ?&gt;   ANSWER  This did the trick   $news_page = get_queried_object(); echo $news_page->post_title;
Static posts page with home.php For my website, I am using a static home page page Home (template front-page.php) and for posts- page News (template home.php)  I need to show all the post titles and exceprts on that page News (templ. home.php), but also show the original title and the_content from that page News itself.  This code below while statement shows all the posts, which is good, but the top the_title also shows the title from the first post, not from the News page itself.  How to achieve what I need?  &lt;?php get_header(); ?&gt;      &lt;?php     the_title();           the_content();     ?&gt;  &lt;?php if(have_posts()) while(have_posts()) : the_post(); ?&gt;          &lt;?php         the_title();         ?&gt;          &lt;?php         the_content();         ?&gt;      &lt;?php     endwhile;     ?&gt;    &lt;?php get_footer(); ?&gt;
find a $\int_{x}^{g(x)} f(t)\,dt = 1$ Let $f : [0, 2] → \mathbb{R}$ be a continuous, positive function and  $$\int_{0}^1 f(x)\,dx = \int_{1}^2 f(x)\,dx= 1$$ For each $x \in [0, 1]$, prove that there exists a unique function $g(x) \in [1, 2]$ such that $$\int_{x}^{g(x)} f(t)\,dt = 1$$ and $g \in C^1$. Well, I think in $g(x) = x +1$, but I'm not sure. Any hint is appreciated.  Thank you. What's the difference between eq, eql, equal and equalp, in Common Lisp? What's the difference between eq, eql, equal and equalp, in Common Lisp?  I understand that some of them check types, some of them check across types an all that, but which is which?  When is one better to use than the others? Many-worlds: how often is the split how many are the universes? (And how do you model this mathematically.) React on global hotkey in a Java program on Windows/Linux/Mac? A Java6 application sits in the system tray. It needs to be activated using a hotkey (e.g. Super-G or Ctrl-Shift-L etc) and do something (e.g. showing an input box).  How do I do that on:   Windows (XP or Vista) OS/X Linux (Gnome or KDE) How exactly was the finalist chosen in the NIST AES competition? Some questions are getting closed as duplicates - good, the system is working. Unfortunately, some are getting closed as duplicates of other questions which are already deleted. This leaves all 1-9,999 reputation users left scratching their heads when they try to view the duplicate. Even worse, imagine being the author of the question and having your question closed as a duplicate when the original question isn't accessible.  I think something is wrong. Today I undeleted a question (left it closed) since it was referenced in the close-reason for another question. Comments indicated that people were clearly irritated that they could not access the duplicate     [Comment] Ok, who thought it was a good idea to close this as duplicate of a deleted question, which most people cannot even see? For the record, I'm reopening - clearly there's enough interest in this question. – Kobi 14 hours ago   ---   [Comment] The PosibleDuplicate link is broken. Voting to reopen. – Rahul G 7 hours ago   ---   [Flag] Closed as duplicate of a deleted question, fail. Thanks for moderating. – {username removed} 14 hours ago   My undelete-action was short-lived, as a few users returned to delete the post again.  It certainly cannot be desirable to reference posts that the vast majority of users cannot even see, especially when the author of the redundant question cannot see (at the time of writing this, the author has a reputation of 18).  I'm not sure what the solution is to this, but I'd like to hear some ideas.  Questions  Question:  Duplicate of: I'm new to Delphi, and I've been running some tests to see what object variables and stack variables are initialized to by default:  TInstanceVariables = class   fBoolean: boolean; // always starts off as false   fInteger: integer; // always starts off as zero   fObject: TObject; // always starts off as nil end;   This is the behaviour I'm used to from other languages, but I'm wondering if it's safe to rely on it in Delphi?  For example, I'm wondering if it might depend on a compiler setting, or perhaps work differently on different machines.  Is it normal to rely on default initialized values for objects, or do you explicitly set all instance variables in the constructor?  As for stack (procedure-level) variables, my tests are showing that unitialized booleans are true, unitialized integers are 2129993264, and uninialized objects are just invalid pointers (i.e. not nil).  I'm guessing the norm is to always set procedure-level variables before accessing them? Best way to remove an event handler in jQuery? Creating fillable PDFs I'd like to create a LaTeX document that when rendered into PDF, has forms that can be filled out using Adobe Reader or other such programs. Then I'd like to be able to extract the data. I deliberately would like to avoid using Acrobat for all the usual reasons (non-free, need different versions for different platforms etc).   Can this be done ? When should I load assets for optimal performance? I'm writing a game using LWJGL and Java, and was wondering if there were best practices for when to load resources.  I have seen examples that load all resources when initializing the game (XNA), ones that load the new resources needed for each level while referencing the already loaded assets again. Is the "omniscient-omnipotent-omnipresent" definition of God consistent? is commonly defined as an  (infinite knowledge),  (unlimited power),  (present everywhere) entity.  Is there any logical  in this definition?  I have seen several paradoxes like below     Does God know what he's going to do   tomorrow? If so, could he do something   else?" If God knows what will happen,   and does something else, he's not   omniscient. If he knows and can't   change it, he's not omnipotent.      "Can 'an omnipotent being' create a   stone so heavy that it cannot lift   it?"   Do they mean that the defintion of God ( as commonly held) is logically inconsistent? multiple prints on the same line in Python How to write a unit-test / test class for trigger? How do I write a unit-test / test class for a trigger?  What are my options?   Inline with the trigger?  New Class? Using Windows DLL from Linux I am always really hesitant to mess around with $IFS because it's clobbering a global.   But often it makes loading strings into a bash array nice and concise, and for bash scripting, conciseness is hard to come by.   So I figure it might be better than nothing if I try to "save" the starting contents of $IFS to another variable and then restore it immediately after i am done using $IFS for something.   Is this practical? Or is it essentially pointless and I should just directly set IFS back to whatever it needs to be for its subsequent uses? So I've been trying to figure out how to prove the following.     Let $(a_n)$ be a sequence of positive numbers such that $\sum\limits_{n=1}^\infty a_n =\infty$, and define $s_n=\sum\limits_{i=1}^n a_i$. Then $\sum\limits_{n=1}^\infty\frac{a_n}{s_n} =\infty$ as well.   I can prove it by comparing it to $\int_1^\infty \frac{1}{x} \, dx $ if the sequence $a_n$ is bounded by some $M$, but that's as far as I've been able to get. How does a wheelie work? So I've been trying to create a mathematical model for an electric motorcycle and began to wonder about the maximum possible torque that could be supplied to the rear driven wheel without having the bike begin to lift up on one wheel.  I found ways to calculate this value online; however, the basic concept as to how the bike actually lifts escapes me.    My problem started when I began to think about what axis the bike will rotate about when it is doing the wheelie.  My first intuition was that the frame and front wheel, together, rotate about the rear axle.  But when I drew a free body diagram of the frame/front wheel system just at liftoff (see below) I made note that the only forces acting about the rear axle, point O, is the force of weight.  This means that an increase in applied torque and subsequently, the applied force Fa, should not effect the rotation about the rear axle.  I know that the applied force on the back wheel is indeed correlated with the propensity for a bike to wheelie, so I considered that the axis of rotation I was choosing was wrong.  If we take the free body diagram above and sum the moments about the center of mass, we would find that an increased applied force would in fact cause the solid body to rotate.  The problem with this understanding is that during rotation, the center of mass of the drawn system should actually rises relative to the surface the bike is moving across.  If the bike were to be truly rotating about its center of mass, then the back wheel would begin to dip below the surface of the road like you might see in a glitchy video game.    So I suspect that the bike is in fact rotating about the back axle, but I don't understand why, please help!  edit: I added the external torque from the back wheel to the frame, which would allow the bike to rotate about the back axle  edit 2:  I suppose that the torque acting on the frame via the engine should not effect the rotation as the movement of a motorcycle can be perfectly replicated by applying a force at the back axle.  A third possible axis of rotation might be the lowest point of the back wheel. bounding a $C^1$ function that upholds $f'(t)\leq 1-f(t)^2$ Past participle after noun: "proposed cost" vs. "cost proposed" I have the following two examples:        Our proposed cost is expensive.   Our cost proposed is expensive.      Is there any difference between them? Or is the second sentence wrong? I am interested in theoretical and practical considerations.