Archie Makuwa
Forum Replies Created
-
Forum: Hacks
In reply to: How to make custom posts taxonomy single page ?The script above will run from your new template called (in this case: single-custompage.php).
Forum: Hacks
In reply to: How to make custom posts taxonomy single page ?<?php $wp_querty = new WP_Query( array( 'post_type' => 'custompost' //you custom post name ,'post_status' => 'publish' ) ); ?>
That will only call custom post types from “custompost”
Forum: Fixing WordPress
In reply to: Site is running very slowCurrent location: South Africa – somewhere at the bottom of the list in terms of internet speed and your side loaded in 6 seconds.
The issue could be from your computer – connection, spyware, etc.
Forum: Hacks
In reply to: How do you deal with Featured Image & Media QueriesFoundation download: https://github.com/drewsymo/Foundation
Forum: Hacks
In reply to: How do you deal with Featured Image & Media QueriesIt depends, I mostly build my sited on the Foundation frame work and it handles the images very well. I have also worked with: picturefill
Github source: https://github.com/scottjehl/picturefill
It works perfectly.
Forum: Hacks
In reply to: How to make custom posts taxonomy single page ?I usually keep the post type script separate and simply call it in the functions.php
Once that part is done, I will create a single-cutompage.php and within the page follow the instructions above:
<?php $wp_querty = new WP_Query( array( 'post_type' => 'custompost' //you custom post name ,'post_status' => 'publish' ) ); ?> //the following section is similar to any single page piece of code //contruct your page <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <h2 class="post-title"> "><?php the_title();?></h2> <p><?php $custom_fied = get_post_meta($post->ID, 'custom_field', true);?></p> //get all the custom fields </div> <?php endwhile; else: ?> <?php endif; ?>
Forum: Fixing WordPress
In reply to: My website has picked up another websites SEO?Emsi is my mentor… you are in good hands ??
Forum: Hacks
In reply to: How to make custom posts taxonomy single page ?There is a much easier and simpler way of doing this – just as an alternative. I install the Wordpres Pods plugin: https://podsframework.org/
Create my custom post types. And then create a single page with a custom loop that calls the custom post types as follows:
$wp_query = new WP_Query(); $wp_query->query( array( 'post_type'=>'post_type', 'paged' => $paging, ) );
And then I begin my page construction:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <h2 class="post-title"> "><?php the_title();?></h2> <p><?php $custom_fied = get_post_meta($post->ID, 'custom_field', true);?></p> //get all the custom fields </div> <?php endwhile; else: ?> <?php endif; ?>
An that is it – all in under 3 minutes.
Forum: Fixing WordPress
In reply to: Cannot Open Site Admin – Fatal Error* wild guess *
I would try renaming the plugin using FTP and try again to login. Usually that works, obviously depending on the type of plugin. I think what WordPress doing at the moment is simply loading the buggy code and therefore disabling you to login into the admin panel.
Forum: Fixing WordPress
In reply to: My website has picked up another websites SEO?Hi,
That looks like a wrong file. The file should be within your main website directory, ie: https://www.index.php (index.html)
The source should look like: https://codepen.io/Archie22is/pen/FHdsg
You can then insert your meta description between line 7 – 9.
Forum: Fixing WordPress
In reply to: My website has picked up another websites SEO?Hi,
The first page looks like a static page that redirects tot he home folder for the wordpress site. You only need to edit the index.php (index.html) file and add the meta description.
The wordpress site can be left alone for now.
Forum: Fixing WordPress
In reply to: Can't login into admin page after attempted site renameYou need to edit the following in the wordpress options table:
– siteurl (to the updated one)
– homeForum: Fixing WordPress
In reply to: My website has picked up another websites SEO?Hmm… *wild guess*
Looks like meta issues – you have not used a meta description. I only see a meta name in the index file. That could possibly be the issue.
Forum: Fixing WordPress
In reply to: WP-ADMIN not loading on all my sitesCan you supply us with a url to one of your websites?
Forum: Fixing WordPress
In reply to: How to Keep Track of Database Changes?I may be wrong, but what I usually use is my hosting company’s backup utility. It’s pretty efficient and quick (less than 3 minutes to backup and restore). I just run a backup before tweaking or changing anything and restore if ever a need arises.
I do not know of any plugin and method in WordPress to go about doing that, but I will wait for other comments as well. Good question ??