marcc1
Forum Replies Created
-
Hi mitcho I have 130 pages and 100 articles.
Even if I set threshold to 1 I get nearly no results for my pages and the results for articles are bad (with a score of 15)!
Even if the pages are about the same issue and have the same words in title there are no results and if he finds sth. related, it is an articles and no related page!I set Topic & Post content to hight and category and tags to lowest.
If I drop relevance down to 2 I get some posts showing up on pages in related pages/posts…
but they are not related at all… :/
please improve “related pages”…. maybe by adding a tags function to pages…. I don’t know…
works!
Thanks.Forum: Installing WordPress
In reply to: Automatic upgrade of 2.9 failedsame problem here:
Fatal error: Call to undefined function current_theme_supports() in /home/www/mac/wp-admin/edit-form-advanced.php on line 101 Fatal error: Call to undefined function current_theme_supports() in /home/www/mac/wp-admin/edit-page-form.php on line 83
Forum: Fixing WordPress
In reply to: How to list latest pages?Perfect!
Thanks!!!
Forum: Fixing WordPress
In reply to: how to get the active post’s categorykay thanks
this works:
$category = get_the_category(); $myCat = $category[0]->cat_ID; if ($myCat == 113) { ... } elseif ($myCat == 122) { ... }
Forum: Fixing WordPress
In reply to: how to get the active post’s categoryokay thanks
I now get the cat ID using this piece of code:
$category = get_the_category(); echo $category[0]->cat_ID;
but this
if ($category[0]->cat_ID = 113) { ... } elseif ($category[0]->cat_ID = 122) { ... }
wont work..
Forum: Fixing WordPress
In reply to: include files into header.php?Forum: Fixing WordPress
In reply to: include files into header.php?tell me you icq/msn/skype and i will contact you… think its much faster…
Forum: Fixing WordPress
In reply to: include files into header.php?Once more…
I got those files:
index.php
– includes header.php
– includes sidebar.php
– includes footer.phpI use ads in the following files:
index.php (1 ad)
sidebar.php (2 ads)
footer.php (1 ad)Your idea is now to include in these files the ads.php like:
include(‘ads.php?page=category 1&adlocation=footerAds’);
right?
in ads.php I get “category 1” as actual page and the ad place “footerAds” with $_GET[‘page’].
which looks likeif(isset($page)) {
$page = $_GET[‘page’];
$adplace = $_GET[‘location’];if($page == “My Category #1”)
{
if($adplace == “footerAds”)
{
$footerAds = footer_ads_code
}
if($adplace == “indexAds”)
{
$indexAds = index_ads_code
}
}
}and this for every single page, ad and adplace!?
Forum: Fixing WordPress
In reply to: include files into header.php?I am going to do some test stuff and come back to you soon ??
but you can also give me a more detailed example!
Forum: Fixing WordPress
In reply to: include files into header.php?Not exactly..
My idea was do include the ads file once determine the page and save 3 variables (e.g. $adsleft, $adsright, $adsbottom)
ads.php:
if page id = 1 $adsleft = adsleft_code $adsright = adsright_code $adsbottom = adsright_code if page id = 2 $adsleft = adsleft_code $adsright = adsright_code $adsbottom = adsright_code if page id = 3 $adsleft = adsleft_code $adsright = adsright_code $adsbottom = adsright_code
In your case with a query string it would do the code above about 3 or more times and maybe with some more loops to determine the ads location.
I use ads on every single page so maybe its the best solution to use global variables even if its not as nice as other solutions..!?
Forum: Fixing WordPress
In reply to: include files into header.php?using a query string is not the perfect solution I dreamed of..
with a query string I have to do the same query more than once..I want to determine which one is the actual page (just once) and then place the right ads..
Forum: Fixing WordPress
In reply to: include files into header.php?I have several ad places in different php files, so my idea was to determine the actual page once and then set all adcodes.
thanks @t31os_, I will give it a try.
Forum: Fixing WordPress
In reply to: include files into header.php?Thanks for this amazing hint. Sorry but i know how to include files =)
I guess it’s not possible to use a variable through so many file!?
ads.php
– if is_page … $ads = ‘xxx’sidebar.php
– echo $adsheader.php
– include(‘ads.php’)index.php
– include(‘header.php’)
– include(‘sidebar.php’)i get no output…