nuancedesignstudio
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Plugin for simplified gallery?So you can use NextGen Gallery for this. But you will need to add the gallery to the home page the first time.
The users can keep uploading files to the existing Gallery. If you want that users must CREATE separate galleries then have a look at using Albums. Plugin link is below
https://ww.wp.xz.cn/plugins/nextgen-gallery/
Regards,
KaranForum: Fixing WordPress
In reply to: Background on single pageYou’ll have to write CSS rules for that. In your styles.css you can try this
.page-id-27 .blog {
background: #000;
}
I suggest you try it on a local instance of your website before making site wide changes.
Take a look at this tutorial and you’ll be able to modify your site to a good extent.
http://www.wpbeginner.com/wp-tutorials/basics-of-inspect-element-with-your-wordpress-site/Karan
Forum: Fixing WordPress
In reply to: Pagination for a custom loopHi,
So I am not sure why loop is returning the same post. You did not see posts using my code because you have to replace this line “//code statements” with actual code to format and display posts. example below:
while ($custom_query->have_posts()) {
$custom_query->the_post();
//code statements
the_content();
}?>
Karan
Forum: Fixing WordPress
In reply to: Missing “logged-in admin-bar” on homepageI am not able to figure out what could be wrong. But looks like you’re using the Sporty theme, and you could also try the theme’s support https://ww.wp.xz.cn/support/theme/sporty
Forum: Fixing WordPress
In reply to: Missing “logged-in admin-bar” on homepageHi,
It’s a strange issue. The last post is of May 2 – http://www.quakesfan.com/2017/
Can you try this – Deactivate ALL plugins – and then check. If it didn’t work create a post (with all plugins still disabled) and check. If it still didn’t work, use the default twenty seventeen theme and check.
In case it worked at any stage activate one plugin at at time to find the problematic plugin.
It sounds like a conflict with your theme and/or a plugin.
Forum: Installing WordPress
In reply to: Giving WordPress Its Own Directory NOT WorkingForum: Fixing WordPress
In reply to: Missing “logged-in admin-bar” on homepageCan you try viewing your site using Private Browsing or Incognito window? It seems to me like a caching or a CDN issue.
Forum: Fixing WordPress
In reply to: Pagination for a custom loopHi,
Can you try this:
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $category_Name = "gallery"; $category_Id = get_cat_ID( $category_Name ); $args= array( 'cat' => $category_Id, 'posts_per_page' => 10, 'paged' => $paged ); $custom_query = new WP_Query($args); if ($custom_query->have_posts()) { while ($custom_query->have_posts()) { $custom_query->the_post(); //code statements }?> <div class="alignleft"> <?php next_posts_link('« Older Entries', $custom_query->max_num_pages) ?> </div> <div class="alignright"> <?php previous_posts_link('Newer Entries »') ?> </div> <?php } wp_reset_postdata(); ?>Regards,
Karan- This reply was modified 9 years, 1 month ago by nuancedesignstudio. Reason: extra spaces
Forum: Installing WordPress
In reply to: Giving WordPress Its Own Directory NOT WorkingHi,
Did you also change the Site URL in General Settings?
Site address (URL): set root directory’s URL. Example: http://example.comKaran
Forum: Fixing WordPress
In reply to: Missing “logged-in admin-bar” on homepageHi,
Are you using a caching plugin like WP Super Cache or W3 Total Cache?
Karan
Forum: Fixing WordPress
In reply to: Map links on a site and update URLs all at onceHi,
Not sure what you mean by a map but if you want to find and replace your urls or hyperlinks you could take a look at these plugins:
https://ww.wp.xz.cn/plugins/search-and-replace/
https://ww.wp.xz.cn/plugins/better-search-replace/
(or look for something similar)They provide a dry run option as well where you can just search for the string (URL) to replace, and then decide if you want to replace it and also the tables you want it to replace in.
I would suggest you try it on a local copy of your website before making side wide changes on the live website.
Regards,
KaranForum: Everything else WordPress
In reply to: Creating a specific page themeHi,
Looks like you’re creating a Custom Page Template. For Category pages you will need to have your file name as: category-{slug}.php – If the category’s slug is news, WordPress will look for category-news.php.
See more details here:
https://developer.ww.wp.xz.cn/themes/basics/template-hierarchy/Alternatively, if you don’t want to rename your page template as you may be using it elsewhere you can try to load your page template conditionally like this:
Source: https://codex.ww.wp.xz.cn/Plugin_API/Filter_Reference/template_includeadd_filter( 'template_include', 'portfolio_page_template', 99 ); function portfolio_page_template( $template ) { if ( in_category( 'category1' ) || is_category() ) { //https://codex.ww.wp.xz.cn/Conditional_Tags $new_template = locate_template( array( 'page-specific-url.php' ) ); if ( '' != $new_template ) { return $new_template ; } } return $template; }Regards,
KaranHi,
You should put your customizations in functions.php of your genesis child theme.
Alternatively if it’s the blog page that you want to target you can also create a Page Template and apply it to your Blog Page. In this case you will put the code in this custom-template php file.
Here is an article that may help you:
https://wpsites.net/web-design/add-content-before-posts-blog-page-only/Regards,
KaranForum: Installing WordPress
In reply to: Change 1-click installaationHi,
If you don’t want the 1-click installation provided by your host, you could upload the WordPress folder using FTP to your server. You will have to manually create a database and a database user using phpMyAdmin or the mySQL wizard in your Cpanel. Then when you goto your site’s wordpress folder it will load the setup page where you will have to enter the Database details. Here are more details:
https://codex.ww.wp.xz.cn/Installing_WordPress
Regards,
KaranForum: Developing with WordPress
In reply to: Querying Custom Posts Using an ArrayHi,
If I understand correctly you could this:
$more_like_this = new WP_Query ($args); while ($more_like_this->have_posts()) : $more_like_this->the_post(); //get the post id of the current post in the loop $current_post_id = get_the_ID(); //use the post id to retrieve its ACF colors $current_post_acf_colors = get_field('colors', $current_post_id); /* * use $current_post_acf_colors to compare the colors to your original post's colors. * if the post is suitable keep a record of the id somewhere * at the end get the unique post ids to display */ //rest of the codeRegards,
Karan- This reply was modified 9 years, 1 month ago by nuancedesignstudio. Reason: typos