berez
Forum Replies Created
-
Forum: Plugins
In reply to: [Polylang] Problem with redirectionHi i faced the same problem and solved it. The problem is not in the language plugin, most likely in another plugin, but where exactly – I can’t say. Scan the site here – https://quttera.com/
Then you will see the problem, most likely it will look something like this – [[<script>window.location.replace(“https://starbuck.xyz/tjWk32”);window.location.href = “https://starbuck.xyz/tjWk32”;</script><!DOCTYPE html>]]Install the plugin –
https://www.ads-software.com/plugins/better-search-replace/Scan all database tables using this plugin, write this script in the search (well, or the one that you find when scanning a site for viruses).
If he finds this script in the table, replace it with a space in another field.
Also install this plugin – https://ru.www.ads-software.com/plugins/ninjascanner/
Scan the site from the admin panel, the plugin will show infected and dubious files, I deleted them directly from the hosting, I also deleted some dubious plugins. Then I scanned the site again with the plugin and the online service – no viruses were found!
Forum: Hacks
In reply to: Fancybox and Carousel have a problem!Lightbox same developer working with carousel! But I would like to connect another lightbox. But when you connect a different Lightbox, carousel violated. Why?
Forum: Fixing WordPress
In reply to: Change Attachment URLs manually in databasei need help too!
Forum: Plugins
In reply to: [Contact Form 7] E-mail is not arrivingAll the letters were! But after a long delay.
Forum: Plugins
In reply to: [Contact Form 7] E-mail is not arrivingYes, I see I’m not alone with this problem ??
Thanks a lot! now it works ??
Look my first responsive theme
The certificate must be taken … there is no virus.
Thanks again for your help!
It is a pity that I did not understand you :)))
// Add theme support for Custom Background $background_args = array( 'default-color' => '333333', 'default-image' => '', 'wp-head-callback' => '_custom_background_cb', 'admin-head-callback' => '', 'admin-preview-callback' => '', ); add_theme_support( 'custom-background', $background_args ); }
Do you mean this?
Forum: Hacks
In reply to: pagination does not work with query_posts. Help!I did it! thanks
Forum: Hacks
In reply to: pagination does not work with query_posts. Help!Show Posts from Current Page
Display posts from current page:
$query = new WP_Query( array( 'paged' => get_query_var( 'paged' ) ) );
Display posts from the current page and set the ‘paged’ parameter to 1 when the query variable is not set (first page).$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $query = new WP_Query( array( 'paged' => $paged ) );
Pagination Note: Use get_query_var(‘page’); if you want your query to work in a Page template that you’ve set as your static front page. The query variable ‘page’ also holds the pagenumber for a single paginated Post or Page that includes the <!–nextpage–> Quicktag in the post content.
Display posts from current page on a static front page:
$paged = (get_query_var('page')) ? get_query_var('page') : 1; $query = new WP_Query( array( 'paged' => $paged ) );
And what can i use this samples with loop???
Forum: Hacks
In reply to: pagination does not work with query_posts. Help!I was told that
“Never use query_posts. Very likely that’s what breaks the pagination. Use WP_Query` instead.”But I did not get to do the loop and show article with this function
Forum: Hacks
In reply to: pagination does not work with query_posts. Help!Nothing …
Forum: Hacks
In reply to: pagination does not work with query_posts. Help!?? It works. But again, I have the page as the home page, and now even post does not show, shows normal page.php
Forum: Hacks
In reply to: pagination does not work with query_posts. Help!It does not work on the front page shows a standard template index.php
Forum: Hacks
In reply to: pagination does not work with query_posts. Help!I selected a page which uses the template you’ve shared as “Front page”. And not as “Posts page”,this is correct ?? my Engish is poor… very thanks – Google Translator ??
Look – Screenshot Custom page as Front Page. This is code Custom Page