I am trying to implement pagination to my custom post type and I am using the bones theme framework as well as their function they provide for pagination.  Here is my code  $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array(     'post_type' =&gt; 'custom_type',     'posts_per_page' =&gt; '5',     'paged' =&gt; $paged ); $wp_query = new WP_Query( $args ); if ( $wp_query-&gt;have_posts() ) :     while ( $wp_query-&gt;have_posts() ) :         $wp_query-&gt;the_post();?&gt;          //DO STUFF HERE      endwhile;     if ( function_exists( 'bones_page_navi' ) ) {         bones_page_navi();      } else {          next_posts_link( __( '&amp;laquo; Older Entries', 'bonestheme' ));         previous_posts_link( __( 'Newer Entries &amp;raquo;', 'bonestheme' ));     } endif;
I have added a custom/secondary query to a template file/custom page template; how can I make WordPress use my custom query for pagination, instead of using the main query loop's pagination?  Addendum  I have modified the main loop query via . Why isn't pagination working, and how do I fix it?
List has No Rows for Assignment to SObject: Error Parse JSON in JavaScript? What does a tilde in angle brackets mean when creating a Java generic class? in my earlier question you can find at:   i describe my error:     I'm using an Asus Zenbook UX562F with an integrated GTX 1050 Max-Q.   After the installation, I installed Nvidia-390 and updated the kernel   with ukuu to 4.20.17 to fix no sound issue.      After the reboot, everything went well and I did:      apt-get update apt-get upgrade + J      All was done well, so I restarted and on the next boot after selecting   Ubuntu in GRUB it gave me a long black screen (violet screen) where   nothing changes after so much time.      I tried to add nomodeset and noveau.modeset=0 single and together but   didn't help so I don't know what to do.   After investigating deeper by installing packages and try to boot i found out that the package which is causing the error is:  intel-microcode   when i purge and block this package with:  sudo apt-get purge intel-microcode sudo apt-mark hold intel-microcode   before upgrading wuth  sudo apt-get upgrade   my system is able to boot normal.  The problem i see is that as i understand it the package protects my intel cpu  Intel® Core™ i7 8565U 1.8 GHz   is vulnearable to meltdown attacks which get fixed by the package.  What can i do to fix the vulnearbility and also get my system to a bootable state?  Thanks for your help Vimu  Edit: I used the manual update technique mentioned at (in german):    and i used the files from the intel github repo:    with the following code mentioned in the tutorial to update the firmware microcode files  sudo cp intel-ucode/06-8e-09 /lib/firmware/intel-ucode/ echo 1 | sudo tee /sys/devices/system/cpu/microcode/reload   i overwrote the old microcode firmware with the newest available on the intel repo  it leada to a bootable system  will this be the best possible fix without upgrading the intel-microcode package provided by apt? Is this correct?     The person with whom I'm doing the project should be here soon.   If it is, is with always a dative preposition (like mit in German)? How to demonstrate that there is no all-prime generating polynomial with rational cofficents? Leave only two decimal places after the dot Console.WriteLine and generic List I frequently find myself writing code like this:  List&lt;int&gt; list = new List&lt;int&gt; { 1, 3, 5 }; foreach (int i in list) {     Console.Write("{0}\t", i.ToString()); } Console.WriteLine();   Better would be something like this:  List&lt;int&gt; list = new List&lt;int&gt; { 1, 3, 5 }; Console.WriteLine("{0}\t", list);   I suspect there's some clever way of doing this, but I don't see it. Does anybody have a better solution than the first block? Can anyone please tell me whether the following function $d:\mathbb{R}^2 \times \mathbb{R}^2 \to  \mathbb{R}$ is really a metric or not on $\mathbb{R}^2$.  $$ d((x_1,x_2),(y_1,y_2))= \begin{cases} |x_1-y_1|, &amp;\text{ if } x_2=y_2\\ |x_1|+|y_1|+|x_2-y_2|, &amp;\text{ if } x_2 \neq y_2. \end{cases} $$  If it really is indeed a metric, please give the proof of triangle inequality.(I'm OK with the other two conditions). Why can't I move a window to the top left corner with wmctrl in Unity? I've been playing around with wmctrl to take more control of my windows. I've encountered a weird behaviour where Unity reserves double the space. See this screen shot:    I opened the terminal and moved the window using the top command. It should be at the top left corner (X=0 Y=0). But for some reason there is some margin between the terminal and the Unity bars.  If I understand the man pages correctly it might have something to do with the WA: 65,24.  Can anybody help me to fix this? What's amazing about these open world games is the freedom I have as a player. If I don't want to follow the main story line for a while, and just explore, I can do that, and the game won't break.  On the other hand I don't particularly like the feeling of having made a significant, bad choice in the game, among the lines of Yeah, that dialog option you selected hours ago? This amazing quest line is now off limits.  If I recall correctly, in Morrowind, I had to progress through a few different guilds' quests in the right order, otherwise it'd have stopped my progress in a few guilds.  As a Skyrim example, it doesn't appear that the very first choice made in Helgen at the very beginning has much significance. If someone told me It's not that significant, you still get to choose sides (or, rather not told me "This is important"), that'd help.  Another example: Based on a question I read here, I should probably make sure that I don't throw away any of the dragon priest masks and need to make sure to collect one during a specific quest. This would be relevant for this topic if I could easily miss it otherwise while doing that question.  This includes accidental problems possibly caused by bugs: It appears .  It doesn't matter too much which of the love triangle guys in Riverwood I support: That's not nearly significant enough.    Are there non-obvious, hidden decision points in the quests and story lines? When playing in a certain area, doing a certain quest, what do I need to make sure to do or not do, to not accidentally prevent me from getting or achieving something significant?  I still want to explore on my own, but want to be aware of which choices are important.  This is somewhat related to . How can I prove that $n^7 - n$ is divisible by $42$ for any integer $n$? I can see that this works for any integer $n$, but I can't figure out why this works, or why the number $42$ has this property. Nature of gravity: gravitons, curvature of space-time or both? General relativity tells us that what we perceive as gravity is curvature of space-time.   On the other hand (as I understand it) gravity can be understood as a force between objects which are exchanging (hypothetical) virtual particles called gravitons, similar to the way electromagnetic forces are due to objects exchanging virtual photons?  At least at first glance, the two concepts seem mutually exclusive. Is there a description of gravity which includes both, or is this contradiction one of the problems in combining GR with quantum mechanics? Sophix tablet will not work without an SD card My Sophix tablet was working without the SD card, but now the camera will not work. I get the following error message:     Insert a SD card before using. $\operatorname{Aut}(\mathbb Z_n)$ is isomorphic to $U_n$. I've tried, but I can't solve the question. Please help me prove that:  $\operatorname{Aut}(\mathbb Z_n)$ is isomorphic to  $U_n$. How do I report a bug? How does Motherboard and CPU affect RAM choice? I am seeking advice on which memory to use with my motherboard and CPU. Below are my components and some relevant information extracted from their official websites.   NOTE: Although this is a very specific case, a general answer is equally good for me — and also alot more useful for everyone else!  CPU: AMD Phenom II X4 810   ASUS M4A785TD-V EVO listed as one of many  motherboards.   Motherboard: ASUS M4A785TD-V EVO   4 x DIMM, Max. 16 GB, DDR3 1800(O.C.)*/1600(O.C.)/1333/1066/800 ECC,Non-ECC,Un-buffered Memory Dual Channel memory architecture (Complete list of specs: ).   NOTE II: I wouldn't want to do any overclocking as I have no experience with that. So I think the 1333 MHz is the most appropriate. Since the higher frequencies are marked with "O.C."  Questions:   How can I be certain that a specific RAM will work well (or not work) together with my CPU and motherboard? (The Qualified Vendor List is a good starting point, but it's a bit limited and sometimes a bit outdated). Is it true that choice of memory is not independent of the processor? How?    I'm worried I'll be missing something essential when buying my next RAM chips :) I'm curious of how illusions would affect spells or abilities that require a target to be looking at something. A good example of this would be Medusa's Petrifying Gaze which has the following effect:  Petrifying Gaze: When a creature that can see the medusa's eyes starts its turn within 30 feet of the medusa, the medusa can force it to make a DC 14 Constitution saving throw if the medusa isn't incapacitated and can see the creature. If the saving throw fails by 5 or more, the creature is instantly petrified. [...]  So if someone were to cast Minor Illusion to put a bag over Medusa's head, would other player/creatures who do not realize that the bag is an illusion be affected by the gaze if they were looking in the direction of it? Does the illusion block the effect? I am generating a fairly large index of .txt, .tex, and .pdf files. This process has worked for a long time, and the size of the index is not the issue. I have added logic to insert additional links in the index and now am running into:  TeX capacity exceeded, sorry [save size=80000]  Questions:  What are the typical causes of this kind of problem, and any suggestions on how to determine the cause of this. Can the save size be increased?  Of course any solution that just allows me to increase the save size would be preferable if it works, the first question is only important if the size can't be increased or I run into this problem again. Notes:  Generating smaller indices seems to work just fine, only when I attempt to generate the entire index do I run into problems, so coming up with a MWE will be difficult. have already been created through .  have already completed their beta stage and are waiting for launch.  are in public beta stage.  are in commitment phase in   proposals are listed in   Now it is really confusing to find a suitable site to ask a question. As an example - I host a blog using . Now I have a question about this hosting. I want to post it in a . Where will I post? I have 2 options available now.     Are developers trying anything to solve this confusing matter?