go41

Re: custom query loop with SELECT and pagination :: Reply by Joern

von Joern am 28. Jul. 2010 | Keine Kommentare

I do not know..
you might have to put previous_posts_link() and next_posts_link() into the plugin itself.
If you run other queries on that file WordPress might not ‚know‘ which is the query you want to paginate and the variable for the current page is gone.
So this xxx_posts_link() has to follow the query you actually want to put into pages directly.
As you find on top of my query I display the page number if it’s paged:

Code:

<?php if ($paged != 1  && $paged) { echo(" Seite $paged" ); } ?>

I would echo the page number for testing only, in your plugin or where ever you call the plugin, to see if paging is set somehow.

Like this:
Code:

<?php echo(" this is page $paged" ); ?>

I am learning more by trial and error than actually knowing how it works ..
____________________
you find me on Google+, Twitter and Facebook

(von: Joern)

Hier noch 21 weitere Ergebnisse dieses Threads:

custom query loop with SELECT and pagination

17. Mrz. 2010 (von: Joern)

I have a custom template listing only posts of one category (category-XX.php)Here I am listing only events, future events and passed events. Using the plugin 'MR Event' I get the date of all events easily into a custom field.This list…

Re: custom query loop with SELECT and pagination :: Reply by hunsford

28. Jul. 2010 (von: hunsford)

Do you know if this will work in non-template files? I'm using the above custom query loop in a plugin file, but previous_posts_link() and next_posts_link() don't return anything. Weiterlesen →

WP sites are being hacked. How can you protect yours Master

20. Nov. 2012 (von: omerkhan01)

Please give me some measures I can take.My friends site using wordpress and hosted on Go Daddy got hacked by the Crows Crew.What steps can you take. Assume I can't upgrade, what things can I do with the existing version…

Re: WP sites are being hacked. How can you protect yours Mas :: Reply by Joern

21. Nov. 2012 (von: Joern)

You should upgrade!When ever there is a new WordPress version, there are always lot's of security patches.WP 2.7 is more than 4 years old, there is only one way to stay 'almost' safe - follow the upgrades.It is wise not…

I am using Arthemia theme. How to make my WP mobile friendly

25. Nov. 2012 (von: omerkhan01)

Hi was wondering since, most people are now browsig sites using Tablets and their smartphones, how I can make my site, which is developed using Wordpress and themed with Arthemia responsive and mobile friendly?Here is a link to my siteThanksOmar…

Re: I am using Arthemia theme. How to make my WP mobile frie :: Reply by Joern

26. Nov. 2012 (von: Joern)

some months ago you asked this already .. I answered here:viewtopic.php?f=1&t=434The Wordpress plugin 'WPtouch' I do not use anymore, as you have two theme templates to handle, your original one plus the one supplied with the plugin.Using Arthemia ... Weiterlesen…

Re: I am using Arthemia theme. How to make my WP mobile frie :: Reply by omerkhan01

27. Nov. 2012 (von: omerkhan01)

So here is a question then.Yes my main home page is called from the index.php file and but other pages, particularly product pages are custom pages.SO my question is if I do upgrade to a more mobile friendly theme, how…

Re: I am using Arthemia theme. How to make my WP mobile frie :: Reply by Joern

28. Nov. 2012 (von: Joern)

your product pages will possibly have no link in a new menubar anymore. these pages use a css file in arthemia folder, as long you keep this folder this file will be used.The images in your product pages you load…

where to add SEO data on WP using SEO plugin or Custom page

3. Dez. 2012 (von: omerkhan01)

Hi there Master Admin, So I got an SEO all in one pack, or Platinum SEO plug in which allows me to put a page title, description and meta tags for each page in my dashboard, now for many of…

Re: where to add SEO data on WP using SEO plugin or Custom p :: Reply by Joern

5. Dez. 2012 (von: Joern)

I guess your Platinum SEO plugin will not 'see' your custom pages? For Wordpress these pages are just links to somewhere else and Wordpress or a plugin can not modify the meta in the header.So your dashboard (or plugin) can…

Re: where to add SEO data on WP using SEO plugin or Custom p :: Reply by omerkhan01

5. Dez. 2012 (von: omerkhan01)

Masteradmin, Sorry I am lost. as to what you are saying. I wanted to know if I put the "meta data" inside the custom php pages, because that is what Google indexes, as that is what is called from wordpress…

Re: where to add SEO data on WP using SEO plugin or Custom p :: Reply by Joern

5. Dez. 2012 (von: Joern)

I wanted to know if I put the "meta data" inside the custom php pages, because that is what Google indexes, as that is what is called from wordpress right?Sure you can edit your custom pages and add the meta…

Re: where to add SEO data on WP using SEO plugin or Custom p :: Reply by omerkhan01

6. Dez. 2012 (von: omerkhan01)

Masteradmin, Can I create a favicon for my "custom pages"? Also, you said that I don't have to use custom pages( I could if I want to) but that I could also use Wordpress and have wordpress be like my…

Re: where to add SEO data on WP using SEO plugin or Custom p :: Reply by master

7. Dez. 2012 (von: master)

about favicon.ico : if you have a favicon.ico in the root of your site, most browsers will load it without the need to link to it. you can also link from your templates to another file as you do now…

Re: where to add SEO data on WP using SEO plugin or Custom p :: Reply by omerkhan01

7. Dez. 2012 (von: omerkhan01)

Masteradmin, you forgot to answer my last question.Here it is again.Let's say that in all of my "custom pages", I am referencing the different "header banners" using something like<div class="banner1"<div class="banner2", etcAnd then manipulating this in my CSSWhere do I…

Re: where to add SEO data on WP using SEO plugin or Custom p :: Reply by Joern

7. Dez. 2012 (von: Joern)

did I forget? might be lazy...There is a difference between your header images and images in your content.Your header images (class="banner1" etc) are set in your css as BACKGROUND image, here you can't set alt tags or keywords.You could however…

changing Line spacing for post excerpt content on Frontpage

13. Dez. 2012 (von: omerkhan01)

Masteradmin, Here is my siteI want to control the spacing between lines of the excerpts on my home page.So for now, if I view it in Avant Browser(All other browsers are fine)The line spacing is like thisThis is a testThis…

2 column archive pages on arthemia

4. Jan. 2013 (von: motorness)

I could have swore I saw somewhere how to change the archive pages to two column layout like the front page.As a side note is there any way to tell if errors in the code are causing issues easily?I've made…

urgent help needed! Page Revisions missing

26. Mrz. 2013 (von: omerkhan01)

Hi there, I can see page revisions for all of my pages except one page. What do you thionk is going on?Omar Weiterlesen →

Re: urgent help needed! Page Revisions missing :: Reply by master

30. Mai. 2013 (von: master)

you use a query including all posts, not just 'published'____________________you find me on Google+, Twitter and Facebook Weiterlesen →

change the title tag in phpBB

31. Mai. 2013 (von: master)

I didn't like the default title entry of prosilver or my current style (theme).The default in the file overall_header.html looked like thisCode:<title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP --&g... Weiterlesen →

Autor:

Du findest mich auch auf Twitter und Facebook!

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.


Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.

weitere forum Beiträge: