Pagination and Related Posts
Yes, it is possible but might be a little complicated to apply the ‘paged’ variable to the arguments. You’ll need pagination functions which do the ajax calls to receive and apply the ‘paged’ var.
Yes, it is possible but might be a little complicated to apply the ‘paged’ variable to the arguments. You’ll need pagination functions which do the ajax calls to receive and apply the ‘paged’ var.
different single.php for different page templates
I’m a fan of page templates – Here’s what I would do. First create a page called something like Person Gallery, call it whatever you’d like. Then we can create either a separate template page-person-gallery.php or open our page.php and run a conditional in our loop to test if we’re viewing the Person Gallery Page: … Read more
how to load custom single.php?
You can edit your permalinks like so: /be-the-first-to-care/first-to-care-blogs/%year%/%monthnum%/%day%/%postname%/ I’m not sure why blog posts work like that, maybe somebody can give you further insight but the above works for me. You can edit your permalinks via: Admin Panel -> Settings -> Permalinks Then click the “Custom Structure” radio button and fill in the textbox with … Read more
I am not sure if there is a simple way to do that, but one solution which can work is get an HTTP referrer and parse it to get the category name. In PHP you can get a referrer like this – $_SERVER[‘HTTP_REFERER’]
I am answering my own question. Here is the javascript that I wrote which works 100% smooth. <script> $(document).on(“scroll mousedown DOMMouseScroll mousewheel keydown”, function (e) { if (e.which > 0 || e.type === “mousedown” || e.type === “mousewheel”) { $(‘html,body’).stop(); } }); pageSize = 1; showPage = function(page) { $(“.comix”).hide(); $(“.comix”).each(function(n) { if (n >= … Read more
Can you make sure that your .HTaccess is writable with necessary permissions that includes the Following as I suspect that WP is not able to alter it : # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
Right bellow the content (single post) <?php if (function_exists(‘paged_comments_template’)) paged_comments_template(); else comments_template(); ?> And the approval you need change in the wordpress panel.
There’s at least 3 options to choose from: You can use the single CPT file name which you can grab from the source code in the body classes or a custom class which can be added directly to the single-cpt.php file or using a functions file with conditional tag. .single-cpt { your declarations } Or … Read more