andy-with-love
Forum Replies Created
-
Forum: Plugins
In reply to: [LeagueManager] teams logo in matchs listeJust add:
<?php echo "<img class='home_logo' src='".$teams[$match->home_team]['logo']."' alt='' /><img class='away_logo' src='".$teams[$match->away_team]['logo']."' alt='' />"; ?>
in the table “leaguemanager matchtable” (in matches.php)
Forum: Fixing WordPress
In reply to: Get content from pages with same meta_key.It is based on Simplenotes
the problem is that the value is a string… I get nothing with this:
<?php <br />$Red = 'a:1:{i:0;s:9:"Red";}'; $Red = unserialize($Red); <?php $pages = get_pages(array('meta_key' => 'color', 'meta_value' => $red[0])); ?> <?php foreach ($pages as $page): ?> <?php echo get_the_post_thumbnail($page->ID, 'thumbnail'); ?> <?php echo $page->post_title; ?> <?php echo $page->post_content; ?> <?php endforeach; ?> ?>
what am i doing wrong?
Forum: Plugins
In reply to: [CataBlog] [Plugin: CataBlog] Link to the next item in the same category?<?php next_post_link(); ?>
works but i want to have only items that are from the same catablog category.eg.
Cats page 2
<< Cats page 1 Cats page 3 >>not
Dogs page 2
<< Dogs page 1 Cats page 1 >>if i put in
<?php next_post_link(); ?>
it will link all items from all categorys, hope you follow ??Forum: Plugins
In reply to: [CataBlog] [Plugin: CataBlog] Link to the next item in the same category?like
<?php next_post_link(); ?>
but for CataBlog categoriesany one?
Forum: Fixing WordPress
In reply to: Menu depending on which category the page is attatched toGot it!
??Forum: Fixing WordPress
In reply to: Menu depending on which category the page is attatched tohmm it does not work, unfortunately, not with “term_taxonomy_id” Do you know any other value that I can try?
Forum: Fixing WordPress
In reply to: RewriteCond?! Can WP leave "invisible" directories aloneI solved that problem:
I read somewhere that i should put my own rewrite rules outside of the #BEGIN and #END lines.
that worked!but my main problem still remain ??
Forum: Fixing WordPress
In reply to: RewriteCond?! Can WP leave "invisible" directories aloneDave,
Gaaaah it doesn’t work!
I change the .htaccess file and I change my permalinks settings to “Month and name”Heres what’s inside the .htaccess
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_URI} !^/project1.*$ RewriteCond %{REQUEST_URI} !^/project2.*$ RewriteCond %{REQUEST_URI} !^/project3.*$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
Then I go back and check the .htaccess file again
And only this remains:# BEGIN WordPress # END WordPress
Wierd as hell! what im a doing wrong?!