Pasta78
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Add Excerpt as meta description without and tagsThanks anyway David.
Forum: Fixing WordPress
In reply to: Add Excerpt as meta description without and tagsYES!!!
That did it.Thanks, you’re very helpful – I’ve seen other support posts of your’s which are ALL very helpful.
Forum: Fixing WordPress
In reply to: Can't use this PHP code in Posts and PagesThanks, found the problem.
Just contacted the creator of the plug-in “Allow PHP in posts and pages” (Hit Reach).Here is what you need to do:
[php]
include(“wp-content/themes/(your theme’s name)/config.php”);
echo $test;
[/php]Now it works.
Forum: Fixing WordPress
In reply to: Can't use this PHP code in Posts and PagesCan anyone help with this please?
Forum: Fixing WordPress
In reply to: Can't use this PHP code in Posts and PagesThanks Jarret,
At the top of this page I’ve decribed in details the exact php codes I was using and the way I’ve been using them with “Allow PHP in posts and pages” Plug-in from Hit Reach.
Try that out with the same plug-in and you’ll see that it won’t work for you…(it’ll take you no more than 2-3 minutes).
Thanks.
Forum: Fixing WordPress
In reply to: Can't use this PHP code in Posts and PagesThanks for the reply JarretC.
I don’t understand – there’s a plug-in that supports ‘php inside posts’, all php codes seem to be working, but this simple code won’t work…
Again, I’m not a php expert but the php code that I’m trying to use seems to me like a very basic php code.
There must be a way for me to run that simple code on posts. I’m sure what I’m trying to achieve by this has been in mind of many other WP users so there must be a ready solution for that.
Forum: Fixing WordPress
In reply to: Can't use this PHP code in Posts and PagesHi, Can anyone help me with this please?
I believe I’m doing things right, just that there’s a problem with WP.Forum: Fixing WordPress
In reply to: Can't use this PHP code in Posts and PagesThat’s exactly what I need to do – have the ability to stick the same html code(s) for example in a specific spot(s) on all posts.
For example: I’d like to display a photo with a link after the first paragraph of each post.
So if one day I decide to replace that photo with another photo or with another html code that does something else, I can easily do that from one place.
So I want to have a config.php page where I keep all my special html codes in one place.
When I edit those codes as per my needs, it’ll affect all places where they appear.
I’m not a .php expert, so one way that I know how to do that is as explained above. I’m sure there are other ways to do that…
Forum: Fixing WordPress
In reply to: Can't use this PHP code in Posts and PagesThanks,
did as what you say, add this code into a post:
[php]
echo getcwd($test);
[/php]Didn’t work…
Got a php error…What do I need to do?
Forum: Fixing WordPress
In reply to: Text widget to display on posts under specific categoryOK, figured out what the problem was!
My WP Theme wasn’t supporting a side menu so couldn’t display any widget in single posts…
Changed theme and now it works.
Sorry…I’m new to WP. Thanks everyone for your support.
Forum: Fixing WordPress
In reply to: Text widget to display on posts under specific categoryDynamic widgets won’t work on posts…
Widgets on Pages is no different than Widget Loigic…I don’t understand how such trivial feature in WP isn’t available, I’m sure I’m not the only one who needs to display ads on posts that belong to specific category.
Forum: Fixing WordPress
In reply to: Text widget to display on posts under specific categoryYes, doesn’t work either…
Won’t display the Widget inside posts.Forum: Fixing WordPress
In reply to: Text widget to display on posts under specific categoryDoesn’t work…crashes WP with an error!
Forum: Fixing WordPress
In reply to: Text widget to display on posts under specific categoryno…I didn’t use X, I used something like:
is_category(‘dog-training’) || (is_single() && in_category(‘dog-training’))
Where ‘dog-training’ is category.
This supposed to work in all the posts of ‘dog-training’ but it only works in ‘dog-training’ main category page.
Forum: Fixing WordPress
In reply to: Text widget to display on posts under specific categoryNope. I tried the following as per what the author of Widget Logic says:
is_category(X) || (is_single() && in_category(X))
This should make the widget work on the category page and within each post that belongs to that category.
I tried it. Widget works on the category page, Widget will not show up on any post under this category…
My problem is – how can I see a widget inside all posts that belong to a specific category?
Thanks.