Hello,
I have a serious issue and I hope there is someone out there who can help me. I am using Polylang together with Lingotek and for some reason the pages started overwriting themselves. E.G. I just created a page (I have pretty permalinks set up, so that is not the issue) with page ID being 1596. The issue is, upon creating a new page (as a a concept after downloading the revised translation from Lingotek), this new page also uses page ID 1596, so the page I previously posted gets overwritten. I have no idea how to fix this.
Many thanks in advance for your help.
Kind regards
Julie
but now i am facing exploit in this page ” ***.com/?page_id=28 ”
After Scanning his account “/home/*****/public_html/ ”
” ***.com/?page_id=28 ” this page came up , it have this code and its sending mass emails.
Im not PHP expert , please tell me which how can i comment that code which is sending mails.
because theres no actual .php page exist.
i assume that its a function in some wp-blog-header.php or wp-load.php or admin-header.php files. but not sure ..
HELP!!!! which file to disable or which code/function to comment.
===== Source Code of ***.com/?page_id=28 =====
[Large code excerpt removed by moderator per forum rules. Please use Pastebin or a Gist for all large code excerpts, they work better anyway.]
]]>I am trying to modify category.php by allowing a custom-post plugin (WP News and Scrolling widget PRO) to show the post instead the standardized system. I have managed to insert a shortcode that allows the plugin to appear. However, it is static, and I want the “pageid” variable in the shortcode to change dynamically to the category it is showing. I have tried as follow:
<?php
/**
* Category Template: Prosjekter
*/
get_header(); ?>
<section id="primary" class="site-content">
<div id="content" role="main">
<?php
// Check if there are any posts to display
if ( have_posts() ) : ?>
<header class="archive-header">
<h1 class="archive-title"><?php echo 'category='.'"'.get_cat_ID($_POST['category']).'"';?>archive-header</h1>
<?php
echo "Current Category ID is: " . $cat ;
?>
<?php
// Display optional category description
if ( category_description() ) : ?>
<div class="archive-meta"><?php echo category_description(); ?></div>
<?php endif; ?>
</header>
<?php
// The Loop
while ( have_posts() ) : the_post(); ?>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<small><?php the_time('F jS, Y') ?> by <?php the_author_posts_link() ?></small>
<div class="entry">
<?php the_excerpt(); ?>
<?php
$cat = 'category='.'"'.get_cat_ID($_POST['category']).'"';
echo do_shortcode( '[sp_news design="design-19" limit="16" grid="4" pagination="true" '.$cat.' show_full_content="false" show_date="false" show_content="true" show_category_name="true" content_words_limit="30" show_read_more="true" content_tail="..." order="DESC" orderby="post_date" link_target="blank" image_height="250"]' );?>
<p class="postmetadata"><?php
comments_popup_link( 'No comments yet', '1 comment', '% comments', 'comments-link', 'Comments closed');
?></p>
</div>
<?php endwhile;
else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
</div>
</section>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
]]>However, since there is a dropdown menu in the ‘Manage Galleries’ admin area which allows us to ‘Link to page:’, which sets the pageid column in the wpp_ngg_gallery table, I’m trying to figure out if it would be possible to use the pageid column to decide which galler(ies) to pull images from? (This is how we interpreted ‘link to page’.)
i.e. ngg_images source=”pageid” default_source=”1″ (in case no pageid matches.)
Guessing this is not currently a feature, wondering how hard it would be to add. Thanks!
https://www.ads-software.com/plugins/nextgen-gallery/
]]>https://www.ads-software.com/plugins/addfunc-head-footer-code/
]]>i’ve bought a template which doesn’t support woocommerce out of the box and tried to implement them by myself. It works fine so far, but the main shop-page which is linked in woocommerce settings as product-page don’t provide the meta from native added page ‘shop’. It’s only, when it is linked as product-page, otherwise i received all meta correctly.
The theme use a build-in plugin that calls “option tree” from themeforest.net.
That is what it looks like, what the theme uses to get an meta option
$ut_hero_caption_slogan_color = get_post_meta( $post->ID,'ut_page_caption_slogan_color' , true);
Found here in search results very helpful lines of code, but didn’t get them work. After taking a better look at the functions.php in main theme, i found some lines, who should ensure to get the right ID.
global $post, $wp_query;
// woo commerce shop ID
if( function_exists('is_shop') ) {
if( is_shop() ) {
$pageID = get_option('woocommerce_shop_page_id');
}
}
So, if i’m right this can’t work without if/else for every option, when the correct ID from woocommerce shop page is stored in $pageID?
Sorry for broken english
]]>www.example.com/photo-gallery/nggallery/album/user-pictures
(I can get to each other gallery if I manually type in the slug.)
The others look like:
www.example.com/?post_type=page&p=41
Only thing I could tell is they were sharing the same page id and we changed those and it didn’t help.
https://www.ads-software.com/plugins/nextgen-gallery/
]]>All help is very welcome.
]]>