Abdessamad Idrissi
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Main feed not showing custom posts (wp 3.1)i succeed to show custom post feeds by adding
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="feed/?post_type=lbotika_ads" />
to the header template.still to know if this is the right way to go or there’s more “poetic” way to achieve such thing!
Forum: Plugins
In reply to: Automatic Attachment Renaming?I searched for this too, still didn’t find anything in the codex or filters..
Forum: Plugins
In reply to: ALL IN ONE SEO Errora littelbit late answer,but helps in future similar cases.
It has nothing to do with the plugin or wordpress;
it is because you are calling wp_redirect somewhre in your codeisn’t it?
Forum: Themes and Templates
In reply to: any substitute for $pagenow global var?after posting on trac, nacin posted the answer:
It’s fine to reference globals. Using pagenow is quite common in fact.That said, there’s the $current_screen object, which if you prefer, has its own getter, get_current_screen(). This was introduced in 3.0 and includes much more information and context than pagenow.
thanx nacin.
Forum: Fixing WordPress
In reply to: debug/echo wordpress emailsI created a ticket requesting this feature: #15687
Forum: Themes and Templates
In reply to: any substitute for $pagenow global var?I created a feature request ticket:
#15686Forum: Plugins
In reply to: call ajax inside wordpress posts/pagesI got it to work by using
add_action('the_content', 'my_function');
this hooks my plugin to the posts and pages.
then in the function I transmit the content like;
function my_function($content) {}
Then I used Ajax by integrating jquery inside my script;
`<script type=”text/javascript”>
jQuery(document).ready(function($) {}`for submitting forms I used jquery/ajax to listen to the form
$("#my_form_id").submit(function() {
and used jquery’s
$.post
to pass variables to a php page that handeles my results and returns them by echo.hope this helps someone!
Forum: Installing WordPress
In reply to: Dreamweaver vs Notepad wp-config-sample.phpthanx rizman for the answer.
Well, I discovered what was missing around with my code; the line break!
In Dreamweaver, if you go to Edit –> Preferences –> Code format –> you have to set line break type to CR LF (Windows). and that’s it.
it was set to CR Macintosh.
have a nice day.
Forum: Fixing WordPress
In reply to: “Post author” not adminby MichaelH (Moderator)
“..Another solution for this in the past has been to create a new user with adminstrator role (e.g. ‘newadmin’), delete the ‘admin’ user and assign all posts to the ‘newadmin’ user. Then if necessary create ‘admin’ again and then delete the ‘newadmin’ user you created before, and assign the posts again to ‘admin’..”this is a bug in WP that should be urgently be fixed.
Forum: Themes and Templates
In reply to: why i stoped using wordpress!by “creating my own system” I mean, a simple dynamic site that is not limited to built in functions/classes (template tags): an easy simple to manage site structure that can be used easily with any other design, with uncentralized/limited methods, giving more power to the developer/designer to express easily their visions.
WordPress is though a good bloging simple great system, but, it just dont make me happy with my visions (look to the case study abouve); peaople don’t like to be presoneers of code, wp says “code is poetry”, that will be true when wp let people write/design the poems the way they like.
Forum: Plugins
In reply to: [Plugin: SyntaxHighlighter] Problems in wp version 2.7.1anybody knows how to fix it?
Forum: Fixing WordPress
In reply to: download WordPress documentation ??just rip the area of codex you want using the open: https://www.httrack.com/page/2/en/index.html