kevinsikora
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Featherlight - A Simple jQuery Lightbox] Still functioning after removalIt’s odd. I have checked the plugins directory. Your plugin is no longer there. But when I click on images, I believe I am seeing your plugin “pop up” the image.
To see what I am talking about, click on the the hockey player image on the following page: http://dryiceinlinehockey.com/leagues/silver-b-monday/.
Forum: Plugins
In reply to: [Import Users from CSV] Invisible usersHow do you fix the user’s role in the CSV file so that the import happens successfully?
The CSV file contains the following:
wp_capabilities
a:1:{s:8:”customer”;b:1;}
a:1:{s:10:”subscriber”;b:1;}
a:1:{s:10:”subscriber”;b:1;}
a:1:{s:10:”subscriber”;b:1;}
a:1:{s:8:”customer”;b:1;}I assume those are the roles.
I am using the latest version of WooCommerce.
Forum: Themes and Templates
In reply to: Applying a template to page in a posts archive pageThe page ID is correct because I display the text from the page properly. So everything is working. I’m just wondering how do I take a page ID and then apply the related template to it for displaying in the archive page.
Forum: Themes and Templates
In reply to: Applying a template to page in a posts archive pageYes, the code for the echo_page_… is in the functions.php. I do hard code the page ID. The content does show up properly. So basically, everything works. But, I just don’t know how to use the template I have attached to that page to display its content. I would like to use the template, because other archive pages that I have will also use pages at the top. I would like to use that same template with them also.
The way I do it now doesn’t strike me as a very good solution.
Forum: Themes and Templates
In reply to: Applying a template to page in a posts archive pageIn this case, my custom post type is (events). So I have a file called archive-events.php. Then to display each event, I have a file called content-events.php.
At the “top” of archive-events.php, I want to display a page. The way I do it now is that I use the following function and pass it the page ID:
function echo_page_description_mp($page_id)
{
$page = get_page($page_id);echo '<article>';
echo '<div class="page-description">';
echo '<p>';
echo $page->post_content;
echo '</p>';
echo '</div>';echo '</article>';
}With that approach, I am not using the template that I have attached to that page. I’ve basically created a new template for it so that I could insert it at the top of the archive-events.php template.
All the PHP files I created myself. They are picked up automatically though by WordPress.
I updated my site with Types 1.0. But the problem still remains.
The menu item that I have problems with is called (Contact).
Forum: Fixing WordPress
In reply to: Index page displayed instead of page templateFor plugins, I have WPML installed and Types. When I disable types, the site completely stops working.
These two plugins are required for my site.
Forum: Fixing WordPress
In reply to: Index page displayed instead of page templateMy .htaccess file has the following:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPressFrom what I understand, that should be correct. The WordPress site was listing this as the correct setting.
For functions, the only that could affect me would be this one:
function get_all_posts_mp($query)
{
if(is_home() && $query->is_main_query())
{
$query->set('post_type', array('events')); // add custom post types into the array$query->set('posts_per_page', 4);
}
}
add_filter('pre_get_posts', 'get_all_posts_mp');That code should only affect the main/index page of the site. Even if I remove that code, the page menu item still won’t work for me.
The .htaccess file is being used because if I make modifications to it, I can see them happening with my site.
I display my menu with the following code:
<?php
$menu_code = wp_nav_menu(array('echo' => false));
$menu_code = str_replace(array("\n"), "", $menu_code);
print($menu_code);
?>
That code prints out the following:
<div class="menu-main-container">
<ul id="menu-main" class="menu">
<li id="menu-item-65" class="menu-item menu-item-type-custom menu-item-object-custom current-menu-item menu-item-home menu-item-65">Home
<li id="menu-item-66" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-66">Events
<li id="menu-item-223" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-223">Contact</div>
Forum: Fixing WordPress
In reply to: Index page displayed instead of page templateNo, the page I am using is not set as the Blog page in Admin->Settings->Reading. The page I am trying to display is not used as the (main/home/index) “page.”