Mike
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Using the read more tag on certain pages only?Are you checking to see whether or not it is the homepage? Why not check to see if it is the home page or front page of the site using this:
<?php if(is_home() || is_front_page()) the_content(‘<span class=”readmore”>Read more</span>’); else
<?php the_content(”); ?> ?>Forum: Fixing WordPress
In reply to: Allow users to view (not edit) unpublished postsUnpublished posts (or drafts) are “private” as they are not published. Here are all of the setting that will need to be set in the user role plugin to allow for seeing and editing drafts (aka private posts):
edit_others_pages
edit_others_posts
edit_pages
edit_posts
edit_private_pages
edit_private_posts
readForum: Fixing WordPress
In reply to: no seo plugins will update/workYou mentioned you have a site on the same server with the same theme, but what about the same plugins? Is wp_head(); in the header right before the </head>?
Forum: Fixing WordPress
In reply to: Background images missing@jac123 Sure. I have a wordpress site that I blended in a template I had been using pre-wordpress with the Twenty Eleven theme. Rather than trying to figure how to customize the twenty eleven layout to work with my template, I plopped my head section from my template right inside the header.php file. My images would not work, as they were all setup as images/image.png, which was of course looking for the images outside the wp-content folder. So I searched around and found that function I posted above. So I went from this:
<img src=”images/image.png” />
To this:
<img src=”<?php bloginfo(‘template_directory’); ?>/images/images.png” />
Adding in that little bit of PHP with the bloginfo function, the template directory was “pulled in” and the images started to be looked for inside the images folder within the template.
Hope that helps!
Forum: Fixing WordPress
In reply to: category listing not aavailable on post edit pageSo you have created post categories correct? Have you changed the post category within the post? Or is that still set as uncategorized?
Forum: Fixing WordPress
In reply to: How to Hide author ?Do you want to hide all authors? That can be done by removing or commenting out that portion in certain theme files.
Forum: Fixing WordPress
In reply to: Background images missingWhat I’ve done, as my one site is using a modified version of the twenty eleven theme, to get images to work (ones not declared through an external CSS file), is to add this before the images/whatever.png in img src tags:
<?php bloginfo(‘template_directory’); ?>/
This takes the template directory and puts it in front of the image so that it pulls from the right location.
HTH
Forum: Fixing WordPress
In reply to: positioning an image in the headerOne thing you can do is change the margin-top to margin-top: 0. That will remove the top margin from the header and move the entire header to the top of the page.
If you want just the bar at the top, you can try adding the image to the body css like so:
background-image: url(“images/topBars.jpg”);
background-position: center top;
background-repeat: no-repeat;
background-size: 760px;Hope that helps!
Forum: Fixing WordPress
In reply to: Allow users to view (not edit) unpublished postsActually there is a way to do this, but a plugin is needed. You would need to install and activate User Role Editor. This will add a User Role Editor option under the User menu. In here select the role you wish to edit and then check read_private_pages and read_private_posts. Click Update.
This will allow all users of that particular role to read private pages and posts.
I had to set up something like this for a Non-profit I was working with recently.
Forum: Fixing WordPress
In reply to: post formatting HELP!!You might take a look at the Easy Columns plugin. I use it here:
https://manndtp.com/help-center/I did a two column setup, but 3, 4, 5 or even six can be done with this plugin. It adds a button in visual mode and gives you plenty of layout options to choose from. Works great under both pages and posts.
Forum: Fixing WordPress
In reply to: accidentally deleted something =Should happen right away. I would contact your web host regarding the PHP issue. If the host is running both PHP 4 & 5 side by side, there might be a line you would add to the .htaccess file.
AddType x-mapp-php5 .php
Forum: Fixing WordPress
In reply to: lost all the controls to edit text on all page editing or creatingFirst thing I would try is to clear the browser history. If using Firefox, that would be Tools > Recent History (or at least under Ubuntu Linux it is) or try the shortcut of Ctrl + Shift + Del. Then reload the page using Ctrl + F5.
If that doesn’t fix the issue, try deactivating any recently activated plugins. Sometimes a newly added plugin may cause the issue you are facing.
Forum: Fixing WordPress
In reply to: Headers Problem with SiteThe issue is that when WordPress hits the wp-login.php file, it runs into something that is trying to output headers, but the headers are already set elsewhere. That means, as Digital Raindrops mentioned, the problem lies elsewhere.
Have you added anything new to the site (plugins, themes) that were not there prior to this issue occuring. Try activating another theme (if you recently activated the theme you are using, or deactiving a recently added plugin to see if the problem goes away. It’s a process of elimination now. Good luck!
Forum: Fixing WordPress
In reply to: accidentally deleted something =It’s a “front-end” for allowing you to access the database. It comes with some hosting companies in their control panel.
Forum: Fixing WordPress
In reply to: CategoriesHere’s the issue. When you go into the category then the subcategory (which works) you get this: products-page/gamesbookstoys/
But when you go directly to the subpage through the dropdown you are taken here instead: products-page/toysgamesbooks-2/
As you can see, those are two different pages. Something is up in the menu.