Non-Linear Questionnaires in WordPress
This plugin is capable of doing exactly what you are after http://www.gravityforms.com/
This plugin is capable of doing exactly what you are after http://www.gravityforms.com/
Did you actually insert the titles/thumbnails/excerpts of the subpages manually using the post editor? If so, you can place the <!–next page–> tag in between every three subpages, and they will be split into paginated sections. (Use the HTML editor to insert the tag.) Keep in mind that many people do not like pagination, so … Read more
there are 3 steps towards achieving your goal. 1 – Rewrite rules – wordpress needs to know what to look for and what to map it to add_rewrite_rule( ‘suche/([^/]+)/?$’, ‘index.php?s=$matches[1]’, ‘top’ ); add_rewrite_rule( ‘suche/([^/]+)(/seite/(\d+))/?$’, ‘index.php?s=$matches[1]&paged=$matches[3]’, ‘top’ ); The above adds straight rewrite rules to the rewrite rules array so anytime someone goes to a URL … Read more
This is the code I get from here, but I don’t remember the exact page, and this is my working page of letter B on my website (using the same code as you see below) <?php /* Template Name: Locali per lettera A WordPress template to list page titles by first letter. You should modify … Read more
You should check your code because you have some sentences that will make your pagination function returns empty value. For example, the next piece of code will get you out because you are in a page template, so is_singular() returns true: if( is_singular() ) return; Also, you are using the global $wp_query object inside your … Read more
As I said, this whole setup you are after is not possible natively with pretty permalinks. Your setup probably works with default permalink structure as both queries (the main query and your custom query) read these permalinks in the same way. When you switch to pretty permalinks, the two queries on the single page interpret … Read more
The problem is that your first rule is capturing anything that begins with news/archive/. Add the $ anchor to match only news/archive/: add_rewrite_rule( ‘^news/archive/?$’, ‘index.php?post_type=news&news_archive=true’, ‘top’ ); Your pagination rule will then begin to work as-is after you flush permalinks.
I think your issue is that wp_pagenavi() is doing pagination based off of the global $wp_query instance instead instance you created. You should either switch to using query_posts() to replace the global query instead, or use WordPress’ built in paginate_links to output the paging.
ok, i still don’t love the idea of a second query, but you’re right it is hard to add content to the archives pages. there were 3 problems that i found: next_posts_link and previous_posts_link both echo, you need their get_ equivalents. when you look up get_next_posts_link, you find that it relies on the global $wp_query… … Read more
Thanks to s_ha_dum for the tip. I managed to solve it by setting the offset parameter in the special case of 2nd page onwards for the front page as follows: function limit_posts_per_home_page() { $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; $first_page_limit = 5; $limit = get_option(‘posts_per_page’); if (is_front_page()) { if ($paged == 1) { $limit … Read more