Muhammad Javed
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Why content in my page can’t display?please try this code, if its still cause issue kindly change double and single quests manually.
<?php /* Template Name: Custom Front Page */ ?>
<?php
/**
* The template for displaying all pages
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages and that
* other ‘pages’ on your WordPress site will use a different template.
*
* @package WordPress
* @subpackage Twenty_Fourteen
* @since Twenty Fourteen 1.0
*/get_header(); ?>
<div id=”main-content” class=”main-content”>
<div id=”primary” class=”content-area”>
<div id=”content” class=”site-content” role=”main”>
<p>it is a test</p></div><!– #content –>
</div><!– #primary –>
<?php get_sidebar( ‘content’ ); ?>
</div><!– #main-content –>- This reply was modified 7 years, 1 month ago by Muhammad Javed.
Forum: Developing with WordPress
In reply to: Conditional logic depend on parent pagei think single quotes causing issue plz try this code.
if ( $post->ID == ‘215’ && $post->post_parent ){
echo ‘contact form’;
}
elseif( $post->ID == ‘230’ && $post->post_parent ){
echo ‘contact form 2’;
}Forum: Developing with WordPress
In reply to: Conditional logic depend on parent pageHello,
please try this code.
global $post;<?php if ( $post->ID == ‘215’ && $post->post_parent ){
echo ‘contact form’;
}
elseif( $post->ID == ‘230’ && $post->post_parent ){
echo ‘contact form 2’;
} ?>- This reply was modified 7 years, 1 month ago by Muhammad Javed.
Forum: Fixing WordPress
In reply to: permalink change while savingHello stephen,
sorry my mistake actually i dont know about this.Forum: Fixing WordPress
In reply to: permalink change while savinghi,
try out this setting
this is working fine for me.- This reply was modified 7 years, 1 month ago by Muhammad Javed.
Forum: Fixing WordPress
In reply to: permalink change while savingplease update your permalinks and then check it, if you still face issue you can send me your backend detail i can check you can send me credential on my email
[email address removed]- This reply was modified 7 years, 1 month ago by Muhammad Javed.
- This reply was modified 7 years, 1 month ago by stephencottontail. Reason: removed email
Forum: Developing with WordPress
In reply to: Custom field withHello
you can use this functionecho “Model: “.get_post_meta(‘your-post-id-here’, ‘Model’, true);
- This reply was modified 7 years, 1 month ago by Muhammad Javed.
Forum: Fixing WordPress
In reply to: permalink change while savingHello,
actually this happen if same permalink already exists you need to first confirm is there any other post exists with same permalink. you need to first change the current posts permalink 480006 to 480006-old and then open same post like this https://yoursite/480006 and check the post if its exists then change its permalink then again update your 480006-old permalink as you want.you can change permalink like this edit your post and change like this
if you still face issue you can ask i will more explain you.
ThanksForum: Fixing WordPress
In reply to: Can’t get rid of plugin which breaks my site!Hello,
for this updated plugin you need at least wordpress version 4.5 check your wordpress version if its not updated update it, another way if you want to upload again old version you can download it from this link
https://www.ads-software.com/plugins/simple-share-buttons-adder/advanced/#plugin-download-history-statsand after download old version you need to first delete updated plugin from plugin listing page (http:/yoursite.com/wp-admin/plugins.php) and then upload load downloaded old version in plugin directory (wp-content/plugins/). after upload go do admin dashboard plugin (http:/yoursite.com/wp-admin/plugins.php) listing page and activate it.
if you still face issue or confusion you can ask i can explain you step by step ??
ThanksForum: Fixing WordPress
In reply to: One click login to external site from link/button WordPress PageHave you find any plugin otherwise i can create plugin ??
Forum: Fixing WordPress
In reply to: One click login to external site from link/button WordPress PageHello ancuisle,
you can do it by users username you can send it by query string, and if you want to do it for specific page then you need to put following code in page id if conditionif($_GET[‘querystring’]){
// Automatic login //
$username = $_GET[‘querystring’];
$user = get_user_by(‘login’, $username );// Redirect URL //
if ( !is_wp_error( $user ) )
{
wp_clear_auth_cookie();
wp_set_current_user ( $user->ID );
wp_set_auth_cookie ( $user->ID );$redirect_to = user_admin_url();
wp_safe_redirect( $redirect_to );
exit();
}
}i hope that will work for you.
- This reply was modified 7 years, 1 month ago by Muhammad Javed.
Forum: Fixing WordPress
In reply to: Sorry! This site doesn’t allow you to save Pins.Hello votw,
i think you are causing this issue because of HTTPS, you need to upgrade the ssl.
if still not fix then disable the site’s CDN some time its change the image url.
hopefully that will solve your issueForum: Fixing WordPress
In reply to: New WP theme replaced by old HTML siteHello Jamesxone,
First of all you need to check your both themes name should be different if not then you need to go in theme directory (wp-content/themes/your-theme-folder) and open style.css file and change theme name like this https://www.screencast.com/t/PAecjJOSmVR
when you done this again go to wordpress dashboard -> appearance ->themes and activate your theme and try again to customize it.
hopefully that will work.