t31os
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to remove “Private” from private pages?Assuming..
?>
Is the last line in the file, replace that with..
function the_title_trim($title) { $pattern[0] = '/Protected:/'; $pattern[1] = '/Private:/'; $replacement[0] = ''; // Enter some text to put in place of Protected: $replacement[1] = ''; // Enter some text to put in place of Private: return preg_replace($pattern, $replacement, $title); } add_filter('the_title', 'the_title_trim'); ?>
Or after should also be fine.. (like so)..
?> <?php function the_title_trim($title) { $pattern[0] = '/Protected:/'; $pattern[1] = '/Private:/'; $replacement[0] = ''; // Enter some text to put in place of Protected: $replacement[1] = ''; // Enter some text to put in place of Private: return preg_replace($pattern, $replacement, $title); } add_filter('the_title', 'the_title_trim'); ?>
If you receive errors, please copy and paste the error here so i can see specifically what the problem is.
Forum: Fixing WordPress
In reply to: Deleting STATPRESS from MySQL?Run a local install.
Check the WP db tables on a fresh install (phpmyadmin), run the statpress installer, check the tables, de-activate the plugin and check what’s left compared to a fresh install of wordpress…
I see this with some plugins, they’re not coded to drop the created tables… or just fail to do it….
If you see anything with statpress appended to a db table name, then you can proberly delete/drop it…
Forum: Fixing WordPress
In reply to: Problem with my plugin’s versionsYou can always drop and add options while tesing…
update_option();
and
drop_option();
* See codex *If you want to drop an old option just plonk it somewhere near the top of the file (drop_option that is), run the page (open it in your browser) once then remove the line after….
Assuming you’re using the options table.. ??
Forum: Fixing WordPress
In reply to: Deseprately need help ASAP, how to get gallery picFurthermore, if adding the custom field does not resolve the problem (which i imagine it could very well be), please post the code from the aforementioned file.
(timthumb.php)..
Forum: Fixing WordPress
In reply to: SQL Database Too Big – Any Way to Shrink?Google and search the plugins directory (like i’d do if i were searching).
If you need professional or assisted supported.
https://jobs.wordpress.net/Forum: Fixing WordPress
In reply to: Excerpts on all posts after firstNo need for multiple loops for that…
Search the forum, this question has been answered.. I know i’ve at least answered a question of this nature at least once this week..
Please mark this topic resolved if this helps
:Posting to resolve:<?php while(have_posts()) : the_post(); $some_number = 0; $some_number++; ?> Your post content, html, etc ....
Then in your loop where the_content normally is…
<?php if($some_number == 1) { the_content(); } else { the_excerpt(); } ?>
Forum: Fixing WordPress
In reply to: SQL Database Too Big – Any Way to Shrink?Remove tables from the database?
What i’d do (and i’m not sure exactly how) is create a mysql query to look for entries in the posts table that have post_status=revision before a certain date, and drop those tables…
And go from there…
Forum: Fixing WordPress
In reply to: Automatically adding text to comment after comment is submittedNot that it’s crucial, but you could change these lines…
$mytext = get_comment_text( $comment ) . 'Test comment text!'; return $mytext;
for..
$mytext = 'Test comment text!'; return get_comment_text( $comment ) . $mytext;
or…
$mytext = get_comment_text( $comment ); $mytext .= 'Test comment text!'; return $mytext;
Just to throw around a couple of slightly different approaches to the same thing… ??
Forum: Fixing WordPress
In reply to: localhost access only!?!?Is the PC viewable on the network otherwise?
And what about by direct IP.
Ex: https://192.168.xxx.xxxAssuming it’s a window PC, what’s your hosts file look like?
Forum: Fixing WordPress
In reply to: Problem with my plugin’s versionsI think that’s because 1.11 is read as 1 point 11, and 11 being higher then 2.
Try using 1.1.1 and 1.2.0 …etc
That’s only a best guess…it may not help at all, but a suggestion nonetheless…
Forum: Fixing WordPress
In reply to: localhost access only!?!?Not sure how it works with XAMPP but with my local install i can access via PC name..
Have you tried that?
Forum: Fixing WordPress
In reply to: Bulk Delete more then 15 imagesYou can adjust the amount of attachments shown by editting wp-admin/post.php
Line 841:
$q['posts_per_page'] = 15;
Adjust as required.
Of course you lose this adjustment when updating WP.
Forum: Fixing WordPress
In reply to: Location of Post Meta DataWhat do you mean, where you can find postmeta.
The functions are there for when you need them, no post meta exists until you start creating custom fields for your posts. So if no custom fields exist, then there is no related post meta.
As standard a theme should have …
<?php the_meta(); ?>
If you want more control over the post meta, then you use the additional functions such as those explained on the codex page.
If you’re still not getting the answer you need, then i’d suggest perhaps re-thinking the question so as to make it clear what you wish to know.
Forum: Themes and Templates
In reply to: Addding a picture in the Text Widget<img src="somepathtoimage" border="0" alt="Alternate Text" title="Image Title" />
Replace “somepathtoimage” with the path to the image…
Forum: Themes and Templates
In reply to: Cannot remove quote mark from blockquoteYou’re welcome.. ??