datafeedr
Forum Replies Created
-
This is not possible.
Sure, you just need to add the Template Code (something like this: <?php if (function_exists(‘dfrads’)) { echo dfrads(‘7318530’); } ?>) into your single.php file after the the_content() section.
It’s in the wp_options table under “dfrads”. https://i56.tinypic.com/2a8455i.jpg
Forum: Fixing WordPress
In reply to: need help with datafeedr random ads pluginSo please can anyone explain to me how can I make the ads change in every 30 seconds
This functionality is not built into the plugin.
Ad information is stored in the wp_options table. You would have to copy that row from one database to another.
That’s not possible without loading all ads, storing them in an array and then using JavaScript to loop through the ads at a timed interval. This would require significant modifications to the plugin.
It’s looking for an ad ID that isn’t in the database connected to that site. Multisite creates new DB tables for each site, therefore, you will have to create the ads again for the new site.
Forum: Plugins
In reply to: [Plugin: Contact Form 7] Conflict with Datafeedr pluginNow that I see all these other Contact 7 problems, it looks like maybe I’d better switch to another form for now.
What other problems are you referring to, out of curiosity?
Forum: Plugins
In reply to: Filter – the_title – finding out contextNice find, willkemp!
Forum: Plugins
In reply to: Calling visual editor via the_editor() from a custom page doesn’t workim also having the exact same issues…
Forum: Fixing WordPress
In reply to: How do I insert space between adsense ad and post title in PHP?Hi
You could try this:
<?php get_header(); ?> <div id="content" class="page"> <?php if (have_posts()) : while (have_posts()) : the_post(); // the loop ?> <?php the_breadcrumb(); ?> <?php if (function_exists('dfrad')) { echo '<div style="margin: 10px 0px">' . dfrad('ads_adsense-datafeedr') . '</div>'; } ?> <h1 id="post-<?php the_ID(); ?>"> <?php the_title(); ?> </h1> <!--post text with the read more link--> <?php the_content(); ?>
But it would be better to assign that <div> tag a class and then modfiy the stylings from the css file.
Eric
Forum: Plugins
In reply to: Moving my wp-content/themes directoryThis may help. Found on https://codex.www.ads-software.com/Editing_wp-config.php
Moving wp-content
Since Version 2.6, you can move the wp-content directory, which holds your themes, plugins, and uploads, outside of the WordPress application directory.
Set WP_CONTENT_DIR to the full local path of this directory (no trailing slash), e.g.
define( 'WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/blog/wp-content' );
Set WP_CONTENT_URL to the full URI of this directory (no trailing slash), e.g.
define( 'WP_CONTENT_URL', 'https://example/blog/wp-content');
Forum: Themes and Templates
In reply to: get_the_content WITH formattingThanks for the tip.
Here’s how I did it:
<?php echo str_replace("\r", "<br />", get_the_content('')); ?>